]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pfsync: Handle syncdev going away
authorKristof Provost <kp@FreeBSD.org>
Fri, 2 Nov 2018 16:57:23 +0000 (16:57 +0000)
committerKristof Provost <kp@FreeBSD.org>
Fri, 2 Nov 2018 16:57:23 +0000 (16:57 +0000)
commitfbbf436d56a307944c0cd0097492ddcb70b57490
treeccf34b511e1d9a5197d2b406a3bf315bd2a3d791
parent26549dfcad9a017dbab72bb306c65ce99bace946
pfsync: Handle syncdev going away

If the syncdev is removed we no longer need to clean up the multicast
entry we've got set up for that device.

Pass the ifnet detach event through pf to pfsync, and remove our
multicast handle, and mark us as no longer having a syncdev.

Note that this callback is always installed, even if the pfsync
interface is disabled (and thus it's not a per-vnet callback pointer).

MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D17502
sys/net/pfvar.h
sys/netpfil/pf/if_pfsync.c
sys/netpfil/pf/pf_if.c
sys/netpfil/pf/pf_ioctl.c