freebsd-dev/sbin/ifconfig
Bjoern A. Zeeb 5af3fa9a5f 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
2011-05-31 14:40:21 +00:00
..
af_atalk.c - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
af_inet6.c Conditionally compile in the af_inet and af_inet6, af_nd6 modules. 2011-05-31 14:40:21 +00:00
af_inet.c Conditionally compile in the af_inet and af_inet6, af_nd6 modules. 2011-05-31 14:40:21 +00:00
af_ipx.c
af_link.c Ethernet vlan(4) interfaces have valid Ethernet link layer addresses but 2010-08-06 15:09:21 +00:00
af_nd6.c Conditionally compile in the af_inet and af_inet6, af_nd6 modules. 2011-05-31 14:40:21 +00:00
ifbridge.c
ifcarp.c Shortening a passphrase caused wrong authentication key to be used. 2010-02-04 11:43:22 +00:00
ifclone.c - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
ifconfig.8 Conditionally compile in the af_inet and af_inet6, af_nd6 modules. 2011-05-31 14:40:21 +00:00
ifconfig.c Conditionally compile in the af_inet and af_inet6, af_nd6 modules. 2011-05-31 14:40:21 +00:00
ifconfig.h - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
ifgif.c Use printb() instead of rolling its own routine to display 2009-09-07 15:52:15 +00:00
ifgre.c - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
ifgroup.c Default to AF_LOCAL instead of AF_INET sockets for non-family-specific 2009-03-15 22:33:18 +00:00
ifieee80211.c Revert r220907 and r220915. 2011-04-22 00:44:27 +00:00
iflagg.c Do no spam the ifconfig output for the aggregated interface with 'laggdev laggX'. 2009-04-30 14:31:52 +00:00
ifmac.c - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
ifmedia.c When setting media always and not just in case of switching to IFM_AUTO 2011-05-15 12:51:00 +00:00
ifpfsync.c
ifvlan.c Add TSO support on VLAN in fconfig(8). 2010-02-20 23:01:09 +00:00
Makefile Conditionally compile in the af_inet and af_inet6, af_nd6 modules. 2011-05-31 14:40:21 +00:00
regdomain.c ifconfig(8) is documented to take a ISO 3166-1 country code to set the 2009-12-15 20:44:12 +00:00
regdomain.h Regulatory fixups: 2009-02-07 01:12:51 +00:00