Page MenuHomeFreeBSD

libifconfig: Overhaul ifconfig_media_* interfaces
ClosedPublic

Authored by freqlabs on Mar 3 2021, 2:57 AM.

Details

Summary

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.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.