The kern.ipc.somaxconn limit revisited.

White Knight white_knight at 2ch.net
Wed Oct 21 12:07:39 UTC 2015


On 2015-10-13 01:32, White Knight wrote:
> On 2015-10-10 02:47, Adrian Chadd wrote:
>> I think it's worth upping to an int type, so we can eventually up it 
>> to > 64k.
>> 
>> Please do submit diffs for revie.w :)
> 
> I'll work on the patch this week, thank you.

I have submitted a bug report, with a patch for review, at

   https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203922

I chose the arbitrary limit of 1431655765 in order to prevent an 
overflow (on systems where u_int is 32bit).

I'm somewhat unsure if my changes to struct xsctp_inpcb are ok.  Is it 
better to use the reserved fields?  And if I don't, like in my patch, is 
it better to shorten the reserved fields accordingly?

I decided not to touch other parts of the netstat formatted output, 
mostly to keep the patch short and to the point.

Please comment and let me know what else needs to be changed.

Are there other userland programs that touch the xsocket and xsctp_inpcb 
interfaces than netstat?

-- 
White Knight

I'm not from 2ch.net, I just work there.


More information about the freebsd-current mailing list