freebsd-nq/sbin/ifconfig
Marius Strobl 6f135a7584 When setting media always and not just in case of switching to IFM_AUTO
clear the options of the current media, i.e. only inherit the instance,
which matches what NetBSD does. Without this it's really non-intuitive
that the following sequence:
	ifconfig bge0 media 1000baseT mediaopt full-duplex
	ifconfig bge0 media 100baseTX
results in 100baseTX full-duplex to be set or that:
	ifconfig bge0 media autoselect mediaopt flowcontrol
	ifconfig bge0 media 1000baseT mediaopt full-duplex
tries to set 1000baseT full-duplex with flowcontrol, which isn't suported
und thus fails while the following:
	ifconfig re0 media 1000baseT mediaopt flowcontrol,full-duplex
	ifconfig re0 media autoselect
just switches to autoselection without flowcontrol.

MFC after:	2 weeks
2011-05-15 12:51:00 +00:00
..
af_atalk.c
af_inet6.c
af_inet.c
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
ifbridge.c
ifcarp.c
ifclone.c
ifconfig.8 Correct 'list scan' description in the examples. The previous description 2011-04-06 11:20:54 +00:00
ifconfig.c Introduces IFF_CANTCONFIG interface flag to point that the interface 2010-12-07 20:23:47 +00:00
ifconfig.h
ifgif.c
ifgre.c
ifgroup.c
ifieee80211.c Revert r220907 and r220915. 2011-04-22 00:44:27 +00:00
iflagg.c
ifmac.c
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
Makefile Fixed dependencies (make checkdpadd). 2010-02-25 20:24:19 +00:00
regdomain.c
regdomain.h