diff options
author | wollman <wollman@FreeBSD.org> | 1994-11-02 04:41:39 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-11-02 04:41:39 +0000 |
commit | 1414f0bd248c5ca6172f3fcabc3136e287e18530 (patch) | |
tree | 6d16aaedb84ab97688d73043e6fee0204a157554 /sys/netinet/in_proto.c | |
parent | 08d6168872f2417e5666243ce4ea5c6abb7bcf4b (diff) | |
download | FreeBSD-src-1414f0bd248c5ca6172f3fcabc3136e287e18530.zip FreeBSD-src-1414f0bd248c5ca6172f3fcabc3136e287e18530.tar.gz |
Add code to be a bit smarter about IP routes, conditioned on the option
IN_RMX. (Eventually this will be standard, but I just wrote the code today
and don't want to break anyone.)
Diffstat (limited to 'sys/netinet/in_proto.c')
-rw-r--r-- | sys/netinet/in_proto.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 13bf148..d397b64 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in_proto.c 8.1 (Berkeley) 6/10/93 - * $Id: in_proto.c,v 1.5 1994/09/14 03:10:08 wollman Exp $ + * $Id: in_proto.c,v 1.6 1994/09/15 10:36:52 davidg Exp $ */ #include <sys/param.h> @@ -154,10 +154,19 @@ struct protosw inetsw[] = { }, }; +#ifdef IN_RMX +extern int in_inithead(void **, int); +#endif + struct domain inetdomain = { AF_INET, "internet", 0, 0, 0, inetsw, &inetsw[sizeof(inetsw)/sizeof(inetsw[0])], 0, - rn_inithead, 32, sizeof(struct sockaddr_in) }; +#ifdef IN_RMX + in_inithead, 32, sizeof(struct sockaddr_in) +#else + rn_inithead, 32, sizeof(struct sockaddr_in) +#endif + }; #include "imp.h" #if NIMP > 0 |