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)
Jan 27 2024, 11:48 PM
Unknown Object (File)
Dec 20 2023, 5:56 AM
Unknown Object (File)
Dec 10 2023, 6:03 PM
Unknown Object (File)
Dec 7 2023, 10:33 AM
Unknown Object (File)
Nov 22 2023, 7:17 PM
Unknown Object (File)
Nov 13 2023, 2:26 PM
Unknown Object (File)
Nov 11 2023, 2:15 PM
Unknown Object (File)
Oct 19 2023, 12:07 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