UDP dont fragment bit

Chuck Swiger cswiger at mac.com
Sun Sep 18 15:47:39 PDT 2005


Milscvaer wrote:
> FreeBSD ought to add per-socket socket options to
> allow a programmer to turn  on and off the don't
> fragment bit for UDP and the UDP checksum, on a per
> socket basis.

Sounds like a fine suggestion.

> FreeBSD needs to implement this feature. We requested
> this same feature years ago and I cannot believe such
> a simple, basic feature is still not implemented, or
> not documented in the setsockopt manpage anyhow. This
> needs to be implemented. We need it. Trust me.

Have you submitted a PR?  Are you willing to work on it yourself?

In the meantime, you can use libnet in advanced mode to create arbitrary UDP 
packets, altering any values you want including the checksum.  Make sure you 
disable your NIC's hardware checksum capabilities, if it has them.

-- 
-Chuck


More information about the freebsd-net mailing list