Page MenuHomeFreeBSD

libifconfig: Add netlink based helpers to retrieve and set MAC address
Needs ReviewPublic

Authored by saheed on Aug 22 2025, 7:57 PM.
Tags
None
Referenced Files
F171111334: D52130.diff
Tue, Sep 8, 6:44 PM
Unknown Object (File)
Sun, Sep 6, 11:57 PM
Unknown Object (File)
Fri, Sep 4, 4:32 PM
Unknown Object (File)
Wed, Sep 2, 1:28 PM
Unknown Object (File)
Tue, Sep 1, 6:28 PM
Unknown Object (File)
Tue, Sep 1, 3:36 PM
Unknown Object (File)
Mon, Aug 31, 1:42 PM
Unknown Object (File)
Sat, Aug 29, 2:18 PM
Subscribers

Details

Reviewers
getz
obiwac
Summary

Adds the following RTM_*LINK related functions:

  • ifconfig_get_mac to retrieve an interface's MAC address
  • ifconfig_set_mac to set MAC address on an interface
  • internal ifconfig_get_link to retrieve link information

ifconfig_set_mac depends on https://reviews.freebsd.org/D51922

Sponsored by: Google LLC (GSoC)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 66469
Build 63352: arc lint + arc unit