diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-04-17 16:35:16 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-04-17 16:35:16 +0000 |
commit | 336d023b2ed22064b0e800275fcf7e385f3d4d03 (patch) | |
tree | 0a36c8f3da83ba53cfb29f958f8c857f45a00fb5 /sys/netinet/in_proto.c | |
parent | 5633ca7116dd4025f6f085bf849c2e18abf9d593 (diff) | |
download | src-336d023b2ed22064b0e800275fcf7e385f3d4d03.tar.gz src-336d023b2ed22064b0e800275fcf7e385f3d4d03.zip |
Notes
Diffstat (limited to 'sys/netinet/in_proto.c')
-rw-r--r-- | sys/netinet/in_proto.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 110301a51006..a5907ec69338 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include "opt_ipx.h" #include "opt_mrouting.h" #include "opt_ipsec.h" +#include "opt_inet.h" #include "opt_inet6.h" #include "opt_pf.h" #include "opt_sctp.h" @@ -50,6 +51,13 @@ __FBSDID("$FreeBSD$"); #include <sys/queue.h> #include <sys/sysctl.h> +/* + * While this file provides the domain and protocol switch tables for IPv4, it + * also provides the sysctl node declarations for net.inet.* often shared with + * IPv6 for common features or by upper layer protocols. In case of no IPv4 + * support compile out everything but these sysctl nodes. + */ +#ifdef INET #include <net/if.h> #include <net/route.h> #ifdef RADIX_MPATH @@ -372,6 +380,7 @@ struct domain inetdomain = { }; VNET_DOMAIN_SET(inet); +#endif /* INET */ SYSCTL_NODE(_net, PF_INET, inet, CTLFLAG_RW, 0, "Internet Family"); |