Page MenuHomeFreeBSD

ifconfig: simplify carp vhid setup.
ClosedPublic

Authored by melifaro on May 19 2023, 10:22 AM.
Tags
None
Referenced Files
F102986570: D40160.diff
Tue, Nov 19, 12:26 PM
Unknown Object (File)
Oct 2 2024, 12:27 PM
Unknown Object (File)
Sep 30 2024, 2:13 PM
Unknown Object (File)
Sep 29 2024, 3:21 AM
Unknown Object (File)
Sep 28 2024, 12:06 AM
Unknown Object (File)
Sep 27 2024, 12:33 AM
Unknown Object (File)
Sep 20 2024, 8:24 PM
Unknown Object (File)
Sep 20 2024, 8:01 PM
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