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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to