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.
Details
Details
- Reviewers
kp - Group Reviewers
network - Commits
- rGa72b78905a3d: ifconfig: simplify carp vhid setup.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 51549 Build 48440: arc lint + arc unit