diff options
author | Ryan Moeller <freqlabs@FreeBSD.org> | 2021-03-02 10:29:17 +0000 |
---|---|---|
committer | Ryan Moeller <freqlabs@FreeBSD.org> | 2021-03-05 09:15:55 +0000 |
commit | c4ba4aa547184ab401204096cdad9def4ab37964 (patch) | |
tree | bd4a3b949d5d9a3fe3668d253ca6599994a32b08 /sbin/ifconfig | |
parent | 5084dde5f087264cf9a826569d1152c65d88a0fe (diff) | |
download | src-c4ba4aa547184ab401204096cdad9def4ab37964.tar.gz src-c4ba4aa547184ab401204096cdad9def4ab37964.zip |
libifconfig: Overhaul ifconfig_media_* interfaces
Define an ifmedia_t type to use for ifmedia words.
Add ifconfig_media_lookup_* functions to lookup ifmedia words by name.
Get media options as an array of option names rather than formatting it
as a comma-delimited list into a buffer.
Sprinkle const on static the static description tables for peace of
mind.
Don't need to zero memory allocated by calloc.
Reviewed by: kp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D29029
Diffstat (limited to 'sbin/ifconfig')
0 files changed, 0 insertions, 0 deletions