Page MenuHomeFreeBSD

libifconfig: Overhaul ifconfig_media_* interfaces
ClosedPublic

Authored by freqlabs on Mar 3 2021, 2:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 9:50 AM
Unknown Object (File)
Fri, Nov 1, 9:41 PM
Unknown Object (File)
Oct 5 2024, 7:44 PM
Unknown Object (File)
Oct 4 2024, 11:09 PM
Unknown Object (File)
Oct 4 2024, 2:19 AM
Unknown Object (File)
Oct 3 2024, 9:39 AM
Unknown Object (File)
Oct 2 2024, 2:12 PM
Unknown Object (File)
Oct 2 2024, 12:38 PM
Subscribers
None

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable