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)
Mon, Dec 9, 5:12 AM
Unknown Object (File)
Sun, Dec 1, 12:24 AM
Unknown Object (File)
Wed, Nov 27, 3:06 AM
Unknown Object (File)
Oct 28 2024, 8:51 AM
Unknown Object (File)
Oct 18 2024, 5:35 AM
Unknown Object (File)
Oct 18 2024, 5:35 AM
Unknown Object (File)
Oct 18 2024, 5:35 AM
Unknown Object (File)
Oct 18 2024, 5:12 AM
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