Page MenuHomeFreeBSD

ifconfig: properly detect invalid mediaopt keywords.
ClosedPublic

Authored by kib on Nov 2 2020, 6:54 PM.
Tags
None
Referenced Files
F167212280: D27060.id79107.diff
Wed, Aug 19, 11:50 PM
Unknown Object (File)
Thu, Aug 13, 3:43 PM
Unknown Object (File)
Wed, Aug 12, 6:36 AM
Unknown Object (File)
Tue, Aug 11, 10:29 PM
Unknown Object (File)
Mon, Aug 10, 8:00 PM
Unknown Object (File)
Mon, Aug 10, 4:48 PM
Unknown Object (File)
Sun, Aug 9, 10:45 PM
Unknown Object (File)
Sun, Aug 9, 10:59 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