From owner-cvs-src-old@FreeBSD.ORG Tue May 31 14:40:35 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78026106566C for ; Tue, 31 May 2011 14:40:35 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 64CCA8FC21 for ; Tue, 31 May 2011 14:40:35 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4VEeZG6006022 for ; Tue, 31 May 2011 14:40:35 GMT (envelope-from bz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4VEeZlP006021 for cvs-src-old@freebsd.org; Tue, 31 May 2011 14:40:35 GMT (envelope-from bz@repoman.freebsd.org) Message-Id: <201105311440.p4VEeZlP006021@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bz@repoman.freebsd.org using -f From: "Bjoern A. Zeeb" Date: Tue, 31 May 2011 14:40:21 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/ifconfig Makefile af_inet.c af_inet6.c af_nd6.c ifconfig.8 ifconfig.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2011 14:40:35 -0000 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