Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2024 21:01:16 +0800
From:      dashuai wu <wds24@mails.tsinghua.edu.cn>
To:        freebsd-net@freebsd.org
Subject:   Does the UDP socket in FreeBSD actually use a send buffer to store packets like Linux?
Message-ID:  <9a1e0b13-e06f-46aa-8174-4b80eea4473a@mails.tsinghua.edu.cn>

next in thread | raw e-mail | index | archive | help
I noticed that FreeBSD does not have kernel parameters for adjusting the
send buffer size like Linux does.

The parameter kern.ipc.maxsockbuf does not seem to affect UDP sending
behavior in this
thread(https://forums.freebsd.org/threads/increase-buffer-with-maxsockbuf-for-udp-streaming.75981/).

While reading the source code, I found that the UDP socket seems to only
use the buffer size to determine if a single message is too large,
and it does not track the amount of buffer space already used.

So, does the UDP socket in FreeBSD actually have a send buffer like Linux?
If yes, where can I find the source code about it?

Thanks all for your time.

- Dashuai Wu




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9a1e0b13-e06f-46aa-8174-4b80eea4473a>