summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-15 09:03:13 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-15 09:03:13 +0000
commitb54aaf22a3886bdbb4459315dbece7b3b1f1892c (patch)
tree8fe347d7b0fb7d960af19a1f7dbfd02c10b82d9a /sys
parentd8e5182669ec289a96d2e134042bb68b693161da (diff)
let udpcksum control generation, but not cheking of udp cksums.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/udp_usrreq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index d237b359b62..dde51578f84 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.5 1996/05/02 23:34:11 deraadt Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.6 1996/05/15 09:03:12 mickey Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -158,8 +158,10 @@ udp_input(m, va_alist)
/*
* Checksum extended UDP header and data.
+ * from W.R.Stevens: check incoming udp cksums even if
+ * udpcksum is not set.
*/
- if (udpcksum && uh->uh_sum) {
+ if (uh->uh_sum) {
bzero(((struct ipovly *)ip)->ih_x1,
sizeof ((struct ipovly *)ip)->ih_x1);
((struct ipovly *)ip)->ih_len = uh->uh_ulen;