HomeFreeBSD

ip6_mroute: Handle interface detach events

Description

ip6_mroute: Handle interface detach events

When an interface goes away we need to make sure the v6 multicast
routing tables don't carry any dangling references to the ifnet. The v4
code handles this already. Copy the approach there and use an
eventhandler to purge the corresponding MIF, if one exists, and further
go through all routes in the FIB and remove references to the interface.

MFC after: 2 weeks
Sponsored by: Stormshield
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D55246

Details

Provenance
markjAuthored on Mar 30 2026, 1:33 PM
Differential Revision
D55246: ip6_mroute: Handle interface detach events
Parents
rG82272cbf56aa: ip6_mroute: Pass the multicast interface number directly to del_m6if()
Branches
Unknown
Tags
Unknown