diff options
author | bz <bz@FreeBSD.org> | 2011-05-25 00:34:25 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2011-05-25 00:34:25 +0000 |
commit | 2a56bd31552754fcf7be84e5f869a380215e53b1 (patch) | |
tree | b4fe38a3b42d79e1a796744a8ac7fdf9aaa6ec3f | |
parent | a96876c24e98e1b7f842f4e941de6b223c185541 (diff) | |
download | FreeBSD-src-2a56bd31552754fcf7be84e5f869a380215e53b1.zip FreeBSD-src-2a56bd31552754fcf7be84e5f869a380215e53b1.tar.gz |
Add FEATURE() definitions for IPv4 and IPv6 so that we can use
feature_present(3) to dynamically decide whether to use one or the
other family.
Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 10 days
-rw-r--r-- | sys/netinet/in_proto.c | 2 | ||||
-rw-r--r-- | sys/netinet6/in6_proto.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 2827c22..d2a772f 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -106,6 +106,8 @@ static struct pr_usrreqs nousrreqs; #include <net/if_pfsync.h> #endif +FEATURE(inet, "Internet Protocol version 4"); + extern struct domain inetdomain; /* Spacer for loadable protocols. */ diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index acd1569..ab54755 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -133,6 +133,7 @@ __FBSDID("$FreeBSD$"); /* * TCP/IP protocol family: IP6, ICMP6, UDP, TCP. */ +FEATURE(inet6, "Internet Protocol version 6"); extern struct domain inet6domain; static struct pr_usrreqs nousrreqs; |