freebsd-skq/sbin/ifconfig
Konstantin Belousov 3f113d5606 ifconfig: properly detect invalid mediaopt keywords.
When invalid keyword is specified, ifconfig(8) is silent about it,
instead random request is sent to the driver.

Before the patch:
root@r-freeb43:~ # ifconfig mce0 mediaopt -txpause,-rxpause
ifconfig: SIOCSIFMEDIA (media): Device not configured

After:
root@r-freeb43:~ # ifconfig mce0 mediaopt -txpause,-rxpause
ifconfig: unknown option: -txpause

Reviewed by:	hselasky, kp
Sponsored by:	Mellanox Technologies / NVidia Networking
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D27060
2020-11-02 21:47:34 +00:00
..
tests
af_inet6.c
af_inet.c
af_link.c ifconfig(8): optimize -f ether:dash mode 2020-06-26 16:20:34 +00:00
af_nd6.c
carp.c
ifbridge.c libifconfig: Add function to get bridge status 2020-07-01 02:32:41 +00:00
ifclone.c Add support for stacked VLANs (IEEE 802.1ad, AKA Q-in-Q). 2020-10-21 21:28:20 +00:00
ifconfig.8 ifconfig.8: Improve formatting of -f in synopsis 2020-11-01 22:50:21 +00:00
ifconfig.c Support hardware rate limiting (pacing) with TLS offload. 2020-10-29 00:23:16 +00:00
ifconfig.h Add support for stacked VLANs (IEEE 802.1ad, AKA Q-in-Q). 2020-10-21 21:28:20 +00:00
iffib.c
ifgif.c
ifgre.c
ifgroup.c
ifieee80211.c Add support for stacked VLANs (IEEE 802.1ad, AKA Q-in-Q). 2020-10-21 21:28:20 +00:00
ifipsec.c
iflagg.c Fix for colliding change (r366917). 2020-10-22 10:36:16 +00:00
ifmac.c
ifmedia.c ifconfig: properly detect invalid mediaopt keywords. 2020-11-02 21:47:34 +00:00
ifpfsync.c
ifvlan.c Add support for stacked VLANs (IEEE 802.1ad, AKA Q-in-Q). 2020-10-21 21:28:20 +00:00
ifvxlan.c Add support for stacked VLANs (IEEE 802.1ad, AKA Q-in-Q). 2020-10-21 21:28:20 +00:00
Makefile Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options
sfp.c Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00