[patch] Multicast: Keep membership and filters in sync

Stef Walter stef-list at memberwebs.com
Thu Sep 10 05:58:58 UTC 2009


When removing multicast membership from a socket (ie:
IP_DROP_MEMBERSHIP) that has multiple multicast memberships, the
internal list of memberships and filters are not kept in sync.

This results in dropped packets that are not delivered to the socket
that has the multicast membership. This was experienced with OSPF
(running quagga).

Besides the obvious non-functional multicast, the following command is
another way to see an indication of the problem:

> # netstat -s -p ip | grep multicast
> 	7 packets received for unknown multicast group

Patch attached which fixes the problem.

Cheers,

Stef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freebsd-mcast-filter-array-in-sync.patch
Type: text/x-diff
Size: 546 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20090910/714e62bb/freebsd-mcast-filter-array-in-sync.bin


More information about the freebsd-net mailing list