summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2006-12-31 21:34:53 +0000
committerWarner Losh <imp@FreeBSD.org>2006-12-31 21:34:53 +0000
commit74eb3236c7904dc36c2bc6cf135a2aad9a23ef80 (patch)
tree75ceee608be7cbb7222afa24cc2bbe7aac71e01c /sys/netinet/udp_usrreq.c
parent989d409801c49af6c7e025e10257733488164985 (diff)
Notes
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 52c4af523cff..701fe73243de 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -93,10 +93,17 @@
* UDP protocol implementation.
* Per RFC 768, August, 1980.
*/
+
+/*
+ * BSD 4.2 defaulted the udp checksum to be off. Turning off udp
+ * checksums removes the only data integrety mechanism for packets and
+ * malformed packets that would otherwise be discarded by bad checksums
+ * may cause problems (espeically for NFS data blocks).
+ */
#ifndef COMPAT_42
static int udpcksum = 1;
#else
-static int udpcksum = 0; /* XXX */
+static int udpcksum = 0;
#endif
SYSCTL_INT(_net_inet_udp, UDPCTL_CHECKSUM, checksum, CTLFLAG_RW,
&udpcksum, 0, "");