]> git.ipfire.org Git - thirdparty/strongswan.git/commit
kernel-pfroute: Maintain virtual flag when repopulating interface addrs
authorTobias Brunner <tobias@strongswan.org>
Tue, 25 Jul 2023 08:21:40 +0000 (10:21 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 27 Jul 2023 06:21:26 +0000 (08:21 +0200)
commita619356b5f21bfe3c13f1576eb1d16c015532ceb
treed6b756713f1f55de1057b28563d77b1a1e280e23
parent006839b06ae69845d16429d177285f38bc404a9d
kernel-pfroute: Maintain virtual flag when repopulating interface addrs

When adding a virtual IP on a TUN interface, the interface might get
activated (in terms of receiving the event) after we've already set the
virtual flag for the added address.  As the activation repopulates the
addresses on the interface, this cleared the flag and the address would
no longer be treated as virtual IP when installing routes for CHILD_SAs
that reference it in their local traffic selectors.

Closes strongswan/strongswan#1807
src/libcharon/plugins/kernel_pfroute/kernel_pfroute_net.c