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)
Jun 21 2023, 1:11 PM
Unknown Object (File)
Jun 20 2023, 6:22 AM
Unknown Object (File)
Jun 17 2023, 9:52 AM
Unknown Object (File)
May 27 2023, 8:20 AM
Unknown Object (File)
May 25 2023, 6:49 AM
Unknown Object (File)
May 19 2023, 2:00 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 Not Applicable
Unit
Tests Not Applicable