Page MenuHomeFreeBSD

libifconfig: Can now create some interfaces. Various bug fixes
AbandonedPublic

Authored by marieheleneka_gmail.com on Mar 31 2017, 4:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 9, 12:17 AM
Unknown Object (File)
Wed, Apr 8, 5:59 AM
Unknown Object (File)
Tue, Apr 7, 4:10 PM
Unknown Object (File)
Wed, Apr 1, 7:47 AM
Unknown Object (File)
Sun, Mar 15, 7:02 AM
Unknown Object (File)
Mar 8 2026, 9:03 AM
Unknown Object (File)
Feb 23 2026, 12:08 AM
Unknown Object (File)
Feb 22 2026, 5:13 PM
Subscribers

Details

Reviewers
kp
allanjude
gnn
Summary

Overall:

  • Updated license headers to be in sync with recent changes in FreeBSD base (see r314436)
  • Now builds shared library, as libifconfig is marked as private

libifconfig.c:

  • Added support for creating general virtual interfaces, and vlan interfaces.
  • Added support for configuring vlandev/vlanid on an unconfigured vlan interface.
  • Fixed potential NULL reference in ifconfig_open()
  • ifconfig_get_description():
    • Fixed memory leak
    • Fixed errornous return value when strdup() fails to set 'description'
  • Some if statements were incorrectly linewrapped even though they were short enough to be on one line.

libifconfig_internal.c:

  • Morphed function ifconfig_ioctlwrap_ret(...) into ifconfig_ioctlwrap(...), as that's the only function needing that functionality now

Submitted by: Marie Helene Kvello-Aune <marieheleneka@gmail.com>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped