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)
Fri, Apr 18, 4:09 PM
Unknown Object (File)
Wed, Apr 16, 7:53 AM
Unknown Object (File)
Feb 25 2025, 5:49 AM
Unknown Object (File)
Feb 2 2025, 4:12 AM
Unknown Object (File)
Jan 18 2025, 12:57 AM
Unknown Object (File)
Nov 20 2024, 5:03 PM
Unknown Object (File)
Nov 19 2024, 2:39 PM
Unknown Object (File)
Nov 19 2024, 2:25 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