Page MenuHomeFreeBSD

pfsync: Handle syncdev going away
ClosedPublic

Authored by kp on Oct 10 2018, 3:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 7:27 AM
Unknown Object (File)
Sep 7 2023, 1:46 PM
Unknown Object (File)
Sep 7 2023, 1:46 PM
Unknown Object (File)
Sep 7 2023, 1:45 PM
Unknown Object (File)
Sep 7 2023, 1:45 PM
Unknown Object (File)
Sep 1 2023, 11:09 PM
Unknown Object (File)
Jul 15 2023, 10:08 PM
Unknown Object (File)
Jul 12 2023, 9:06 PM
Subscribers

Details

Summary

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).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz added a subscriber: bz.

That was kind-of the model I had in mind for the other callbacks as well ;-)

sys/netpfil/pf/if_pfsync.c
2309 ↗(On Diff #48975)

The comment should end on the next line.

This revision is now accepted and ready to land.Oct 10 2018, 6:54 PM
This revision now requires review to proceed.Oct 12 2018, 7:52 AM
kp marked an inline comment as done.Oct 12 2018, 7:52 AM
This revision is now accepted and ready to land.Oct 30 2018, 8:02 PM
This revision was automatically updated to reflect the committed changes.