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
Unknown Object (File)
Wed, Apr 1, 5:18 AM
Unknown Object (File)
Sun, Mar 29, 1:03 AM
Unknown Object (File)
Sat, Mar 28, 6:39 AM
Unknown Object (File)
Sat, Mar 28, 1:33 AM
Unknown Object (File)
Fri, Mar 27, 12:10 PM
Unknown Object (File)
Tue, Mar 24, 7:19 PM
Unknown Object (File)
Sun, Mar 15, 4:17 PM
Unknown Object (File)
Sun, Mar 15, 6:32 AM
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