Date: Tue, 31 May 2011 14:40:21 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/ifconfig Makefile af_inet.c af_inet6.c af_nd6.c ifconfig.8 ifconfig.c Message-ID: <201105311440.p4VEeZlP006021@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bz 2011-05-31 14:40:21 UTC FreeBSD src repository Modified files: sbin/ifconfig Makefile af_inet.c af_inet6.c af_nd6.c ifconfig.8 ifconfig.c Log: SVN rev 222527 on 2011-05-31 14:40:21Z by bz Conditionally compile in the af_inet and af_inet6, af_nd6 modules. If compiled in for dual-stack use, test with feature_present(3) to see if we should register the IPv4/IPv6 address family related options. In case there is no "inet" support we would love to go with the usage() and make the address family mandatory (as it is for anything but inet in theory). Unfortunately people are used to ifconfig IF up/down etc. as well, so use a fallback of "link". Adjust the man page to reflect these minor details. Improve error handling printing a warning in addition to the usage telling that we do not know the given address family in two places. Reviewed by: hrs, rwatson Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 2 weeks Revision Changes Path 1.41 +12 -0 src/sbin/ifconfig/Makefile 1.7 +2 -0 src/sbin/ifconfig/af_inet.c 1.9 +3 -0 src/sbin/ifconfig/af_inet6.c 1.3 +4 -0 src/sbin/ifconfig/af_nd6.c 1.178 +6 -4 src/sbin/ifconfig/ifconfig.8 1.157 +25 -2 src/sbin/ifconfig/ifconfig.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105311440.p4VEeZlP006021>