summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2005-09-26 20:25:16 +0000
committerandre <andre@FreeBSD.org>2005-09-26 20:25:16 +0000
commitbedcd4ace8e6c1ce8c4308a2e5dd2e0a92d9ac06 (patch)
treea3737bbb5bd709abc559f3b94c77fac68eb192c2 /sys/netinet/in_pcb.h
parent4eeb530ac72e50536d9d5f48d9cba224a2f48e77 (diff)
downloadFreeBSD-src-bedcd4ace8e6c1ce8c4308a2e5dd2e0a92d9ac06.zip
FreeBSD-src-bedcd4ace8e6c1ce8c4308a2e5dd2e0a92d9ac06.tar.gz
Implement IP_DONTFRAG IP socket option enabling the Don't Fragment
flag on IP packets. Currently this option is only repected on udp and raw ip sockets. On tcp sockets the DF flag is controlled by the path MTU discovery option. Sending a packet larger than the MTU size of the egress interface returns an EMSGSIZE error. Discussed with: rwatson Sponsored by: TCP/IP Optimization Fundraise 2005
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 3d267ae..fc4dfe4 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -283,6 +283,7 @@ struct inpcbinfo { /* XXX documentation, prefixes */
#define INP_MTUDISC 0x100 /* user can do MTU discovery */
#define INP_FAITH 0x200 /* accept FAITH'ed connections */
#define INP_RECVTTL 0x400 /* receive incoming IP TTL */
+#define INP_DONTFRAG 0x800 /* don't fragment packet */
#define IN6P_IPV6_V6ONLY 0x008000 /* restrict AF_INET6 socket for v6 */
OpenPOWER on IntegriCloud