Date: Sun, 15 May 2011 12:51:00 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/ifconfig ifmedia.c Message-ID: <201105151251.p4FCpJ3m052437@repoman.freebsd.org>
index | next in thread | raw e-mail
marius 2011-05-15 12:51:00 UTC
FreeBSD src repository
Modified files:
sbin/ifconfig ifmedia.c
Log:
SVN rev 221954 on 2011-05-15 12:51:00Z by marius
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
Revision Changes Path
1.33 +1 -5 src/sbin/ifconfig/ifmedia.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105151251.p4FCpJ3m052437>
