Page MenuHomeFreeBSD

pfsync: Handle syncdev going away
ClosedPublic

Authored by kp on Oct 10 2018, 3:18 PM.
Tags
None
Referenced Files
F107170103: D17502.diff
Sat, Jan 11, 4:53 AM
Unknown Object (File)
Sat, Jan 4, 8:04 AM
Unknown Object (File)
Wed, Dec 18, 8:09 AM
Unknown Object (File)
Dec 8 2024, 7:27 PM
Unknown Object (File)
Sep 17 2024, 1:24 AM
Unknown Object (File)
Sep 9 2024, 4:17 AM
Unknown Object (File)
Sep 9 2024, 4:17 AM
Unknown Object (File)
Sep 8 2024, 4:22 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20117
Build 19611: arc lint + arc unit

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

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.