Page MenuHomeFreeBSD

ifconfig: simplify carp vhid setup.
ClosedPublic

Authored by melifaro on May 19 2023, 10:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 13 2025, 9:17 PM
Unknown Object (File)
Dec 7 2025, 5:30 AM
Unknown Object (File)
Dec 4 2025, 8:51 AM
Unknown Object (File)
Nov 12 2025, 1:38 AM
Unknown Object (File)
Nov 11 2025, 10:06 PM
Unknown Object (File)
Nov 11 2025, 7:06 AM
Unknown Object (File)
Nov 1 2025, 8:25 PM
Unknown Object (File)
Oct 27 2025, 7:43 AM
Subscribers

Details

Summary

Currently carp implementation peeks into the opaque 'afp->af_addreq' buffer, assumes it knows the af-specific layout and assigns vhid directly.
Simplify the code and remove abstraction leak by introducing per-afp callback for setting vhid.
This change is a pre-requisite to set addresses via Netlink, as Netlink implementiation uses different structure layout.

Diff Detail

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