Brian E Carpenter <[email protected]> wrote: > 2. At startup, I create a socket for multicast sending for each interface in that list. > Details are in the function '_try_mcsock', including setting SO_REUSEADDR, 1, > IPV6_MULTICAST_LOOP, 0 and IPV6_MULTICAST_HOPS, 1.
I don't think I've set MULTICAST_LOOP, so I will investigate that.
> 4. To listen for multicasts, I have a thread that listens to a single
socket
> with SO_REUSEADDR, 1 that is bound to GRASP_LISTEN_PORT and explicitly
joins
> ALL_GRASP_NEIGHBORS_6 on each interface. I don't understand my own code
(magic
> borrowed from stackoverflow) but it's just after 'class
> _mclisten(threading.Thread)'
So it joins ALL_GRASP_NEIGHBOURS multiple times.
I didn't think I could do that. That would be better.
> I hope that helps. This is code I wrote years ago now, and I'm not proud
> of it; in fact I'm frightened to touch it. A few remarks in line below:
Yes, it does help.
--
Michael Richardson <[email protected]> . o O ( IPv6 IøT consulting )
Sandelman Software Works Inc, Ottawa and Worldwide
signature.asc
Description: PGP signature
_______________________________________________ Anima mailing list [email protected] https://www.ietf.org/mailman/listinfo/anima
