Re: Add SO_REUSEADDR when binding SO_REUSEPORT socket to multicast address

2015-12-13 Thread Vincent Gross
On 12/09/15 16:49, Vincent Gross wrote: > in_pcbbind and in6_pcbbind both extends SO_REUSEADDR for multicast > addresses so that it turns into a SO_REUSEPORT. But the check is done > in such a way that you cannot bind a SO_REUSEPORT-enabled socket to a > multicast address *after* you bound a SO_REU

Add SO_REUSEADDR when binding SO_REUSEPORT socket to multicast address

2015-12-09 Thread Vincent Gross
in_pcbbind and in6_pcbbind both extends SO_REUSEADDR for multicast addresses so that it turns into a SO_REUSEPORT. But the check is done in such a way that you cannot bind a SO_REUSEPORT-enabled socket to a multicast address *after* you bound a SO_REUSEADDR-enabled socket to the same address. *But