Date: Wed, 25 May 2011 00:34:25 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r222272 - in head/sys: netinet netinet6 Message-ID: <201105250034.p4P0YPc3091841@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Wed May 25 00:34:25 2011 New Revision: 222272 URL: http://svn.freebsd.org/changeset/base/222272 Log: 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 Modified: head/sys/netinet/in_proto.c head/sys/netinet6/in6_proto.c Modified: head/sys/netinet/in_proto.c ============================================================================== --- head/sys/netinet/in_proto.c Tue May 24 21:15:13 2011 (r222271) +++ head/sys/netinet/in_proto.c Wed May 25 00:34:25 2011 (r222272) @@ -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. */ Modified: head/sys/netinet6/in6_proto.c ============================================================================== --- head/sys/netinet6/in6_proto.c Tue May 24 21:15:13 2011 (r222271) +++ head/sys/netinet6/in6_proto.c Wed May 25 00:34:25 2011 (r222272) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105250034.p4P0YPc3091841>