Patch for adding SO_REUSEPORT socket option

Alan Bateman Alan.Bateman at oracle.com
Mon Jan 4 19:24:16 UTC 2016



On 04/01/2016 18:43, Volker Simonis wrote:
> :
> Alan, what do you mean by "unknown" platform? Currently, as far as I
> know, 0x0200 is used by AIX and MacOS X. Do you suggest to name these
> platforms explicitly and set it to 0 otherwise? Leaving the default at
> 0x0200 has the advantage that it would implicitly work on other
> platforms like HPUX at the risk that it may be the wrong value on
> other, yet still unknown platforms. So in general I'm not against
> setting it to 0 on unknown platfroms (as this is the most secure
> setting) but in that case we should definitely name AIX and MacOS X as
> "known" platforms.
My concern with defaulting to 0x0200 is that it might be used on a 
platform where this is not the right value. Defaulting to 0 makes it 
easier to catch the issue and allows us to includes assertion that the 
socket option is != 0. If we build on versions of AIX and OSX that don't 
have SO_REUSEPORT defined then it would be good to get those into the 
known platform list.

-Alan


More information about the net-dev mailing list