Page MenuHomeFreeBSD

ifconfig: simplify carp vhid setup.
ClosedPublic

Authored by melifaro on May 19 2023, 10:22 AM.
Tags
None
Referenced Files
F132413395: D40160.id122112.diff
Thu, Oct 16, 5:43 PM
F132327467: D40160.id.diff
Wed, Oct 15, 10:42 PM
Unknown Object (File)
Wed, Oct 15, 1:27 AM
Unknown Object (File)
Tue, Oct 14, 5:38 AM
Unknown Object (File)
Wed, Oct 8, 2:42 PM
Unknown Object (File)
Thu, Sep 25, 12:21 AM
Unknown Object (File)
Tue, Sep 16, 10:56 PM
Unknown Object (File)
Sep 15 2025, 8: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