Page MenuHomeFreeBSD

ifconfig: properly detect invalid mediaopt keywords.
ClosedPublic

Authored by kib on Nov 2 2020, 6:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 1, 9:46 PM
Unknown Object (File)
Fri, Nov 29, 12:01 PM
Unknown Object (File)
Nov 12 2024, 12:38 PM
Unknown Object (File)
Nov 2 2024, 5:40 PM
Unknown Object (File)
Oct 31 2024, 10:59 AM
Unknown Object (File)
Oct 3 2024, 1:59 PM
Unknown Object (File)
Oct 3 2024, 10:00 AM
Unknown Object (File)
Sep 25 2024, 11:25 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