Page MenuHomeFreeBSD

ifconfig: properly detect invalid mediaopt keywords.
ClosedPublic

Authored by kib on Nov 2 2020, 6:54 PM.
Tags
None
Referenced Files
F149535919: D27060.id79085.diff
Wed, Mar 25, 2:32 AM
F149528843: D27060.diff
Wed, Mar 25, 1:19 AM
F149518689: D27060.id79107.diff
Wed, Mar 25, 12:13 AM
Unknown Object (File)
Sun, Mar 22, 6:19 PM
Unknown Object (File)
Thu, Mar 12, 9:14 PM
Unknown Object (File)
Sat, Mar 7, 1:13 AM
Unknown Object (File)
Tue, Mar 3, 2:15 PM
Unknown Object (File)
Sun, Mar 1, 8:19 AM

Details

Summary

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

Sponsored by: Mellanox Technologies / NVidia Networking

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable