Does the UDP socket in FreeBSD actually use a send buffer to store packets like Linux?

From: dashuai wu <wds24_at_mails.tsinghua.edu.cn>
Date: Wed, 18 Sep 2024 13:01:16 UTC
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