opnsense-src/share/examples/libifconfig
Ryan Moeller 534e161747 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
Differential Revision:	https://reviews.freebsd.org/D29029

(cherry picked from commit c4ba4aa547)
2021-03-19 09:00:19 -04:00
..
ifchangevlan.c
ifcreate.c
ifcreatevlan.c
ifdestroy.c
Makefile
setdescription.c
setmtu.c
status.c