On Wed, Apr 18, 2018 at 9:59 AM, Willem de Bruijn <willemdebruijn.ker...@gmail.com> wrote: >> One thing that was not clear to me about the API: shouldn't UDP_SEGMENT >> just be automatically determined in the stack from the pmtu? Whats >> the motivation for the socket option for this? also AIUI this can be >> either a per-socket or a per-packet option?
I forgot to respond to the last point: yes, it is set either as a setsockopt or passed as a cmsg for a given send call. Especially when using unconnected sockets to communicate with many clients, it is likely that this value will vary per call.