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)
Thu, May 7, 11:35 AM
Unknown Object (File)
Wed, May 6, 9:47 AM
Unknown Object (File)
Sun, May 3, 12:17 PM
Unknown Object (File)
Apr 22 2026, 2:49 AM
Unknown Object (File)
Apr 21 2026, 6:27 PM
Unknown Object (File)
Apr 20 2026, 8:16 PM
Unknown Object (File)
Apr 20 2026, 7:41 AM
Unknown Object (File)
Apr 20 2026, 7:40 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