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

--- Comment #14 from Cameron Sparr <cameronsp...@gmail.com> ---
@Alfred, thanks for the background info

Re (1) do you mean that when kern.ipc.maxsockbuf gets set, scale the sb_max
value up by the inverse of sb_max_adj? ie, kern.ipc.maxsockbuf * 2304 / 2048.
In that case, setting kern.ipc.maxsockbuf to 1000000 bytes would actually set
sb_max to 1125000 (and sb_max_adj to 1000000), making it possible to set the
buffers to 1000000 bytes.

Re (2), If kern.ipc.maxsockbufmeta were read/write, which of the settings would
have precedence? Would you have to set maxsockbufmeta first anytime you wanted
to set maxsockbuf? Or would setting maxsockbuf auto-set maxsockbufmeta?'

Re Linux silent truncation: agreed, it's scary and gives the impression that
setsockopt() worked, when really it didn't do anything at all

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to