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)
Sun, Dec 7, 5:30 AM
Unknown Object (File)
Thu, Dec 4, 8:51 AM
Unknown Object (File)
Nov 12 2025, 1:38 AM
Unknown Object (File)
Nov 11 2025, 10:06 PM
Unknown Object (File)
Nov 11 2025, 7:06 AM
Unknown Object (File)
Nov 1 2025, 8:25 PM
Unknown Object (File)
Oct 27 2025, 7:43 AM
Unknown Object (File)
Oct 26 2025, 2:25 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 Not Applicable
Unit
Tests Not Applicable