From 8d5a3ca77bc357a21ed5eed52084ac6eceeb6429 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Wed, 25 May 2011 00:34:25 +0000 Subject: [PATCH] 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 --- sys/netinet/in_proto.c | 2 ++ sys/netinet6/in6_proto.c | 1 + 2 files changed, 3 insertions(+) diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 2827c221e6e..d2a772f46c7 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -106,6 +106,8 @@ static struct pr_usrreqs nousrreqs; #include #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 acd156950fe..ab54755f02c 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;