HomeFreeBSD

kern: wg: add support for removing Allowed-IPs

Description

kern: wg: add support for removing Allowed-IPs

This was recently added to Linux to improve incremental update support,
as you could previously add Allowed-IPs but not remove without replacing
the whole set (and thus, potentially disrupting existing traffic).

Removal is incredibly straightforward; we'll find it in p_aips first
to ensure that it's actually valid for this peer, then we'll delete it
from the radix tree before we remove the corresponding p_aips entry.

Reviewed by: Jason A. Donenfeld, jhb
Differential Revision: https://reviews.freebsd.org/D50448

Details

Provenance
kevansAuthored on Jun 26 2025, 2:57 AM
Reviewer
jhb
Differential Revision
D50448: kern: wg: add support for removing Allowed-IPs
Parents
rG2475a3dab0d5: kern: wg: split address/mask construction out of wg_aip_add()
Branches
Unknown
Tags
Unknown