libifconfig
libifconfig copied to clipboard
A C API to do most things done by the FreeBSD 'ifconfig' program today
Currently, style checks are not run when the CI fails on building the library. This is annoying to some highly caffeinated developers. Additionally, as the style(9) checks only require the...
Due to a copy/paste error, `ifconfig_set_metric` actually sets the mtu, not the metric
sbin/ifconfig is organized into a base/mixin model. Some basic functionality like setting an interface description is contained in ifconfig.c, but most functionality is contained in mixin files for each feature...
`ifconfig_ioctlwrap` conveniently opens the right socket type and sets all of the error fields, but it only works for ioctls where the data field has type `struct ifreq`. I'm finding...
Check whether all compilers in base supports the '#pragma once' guard lock. Do also consider corner cases, like multiple copies of the header being included, from different paths. Reported by:...
Add support for manipulating virtual interface 'vlan'. - assign parent interface - assign VLAN ID - Other? Check ifconfig's ifvlan.c Consider adding a method for creating VLAN interface and assigning...
The vxlan driver requires special configuration and therefore needs separate creation/initialization code. See ifconfig: ifvxlan.c: clone_setdefcallback("vxlan", vxlan_create);
The vxlan driver requires special configuration and therefore needs separate creation/initialization code. See ifconfig: ifieee80211.c: clone_setdefcallback("wlan", wlan_create);
Investigate if the following section of code is necessary: ``` } else if (ifr.ifr_buffer.length > descrlen) { descrlen = ifr.ifr_buffer.length; continue; } ``` I _think_ this tells the next ioctl()...
Add support for manipulating virtual interface 'bridge'. - create interface - add member interface (addm) - remove member interface (deletem) - manipulation of various properties, see ifconfig's ifbridge.c for more...