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)
Sat, Oct 18, 5:12 PM
Unknown Object (File)
Fri, Oct 17, 8:41 PM
Unknown Object (File)
Fri, Oct 17, 8:30 PM
Unknown Object (File)
Thu, Oct 16, 6:14 PM
Unknown Object (File)
Thu, Oct 16, 5:43 PM
Unknown Object (File)
Wed, Oct 15, 10:42 PM
Unknown Object (File)
Wed, Oct 15, 1:27 AM
Unknown Object (File)
Tue, Oct 14, 5:38 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