On 22 November 2013 09:26, Martin Pieuchot <mpieuc...@nolizard.org> wrote: > On 18/11/13(Mon) 11:43, Martin Pieuchot wrote: >> Diff below changes the way protocol multicast addresses are linked to >> an interface. >> >> Right now they are added to a list attached to the first protocol >> address of an interface. That makes this address descriptor and >> its position in the global list special. Plus in the IPv6 case, >> a special kludge is used to move multicast records from one >> address to another. >> >> So this diff reuse the design of the protocol agnostic "struct ifaddr" >> and adds a new list of multicast addresses, "struct ifmaddr", to the >> interface descriptor. It solves the problems described previously and >> as a bonus properly free the IPv4 multicast records of an interface >> when it is detached, thus plugging some more leaks. >> >> I tested it with a carp setup, I appreciate any multicast related >> tests. > > Here's an updated diff after recent header changes. >
looks better, indeed. OK mikeb > Did anybody tested it? Does it break one of your use cases? Comments? >