summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-10-06 17:04:26 +0000
committertuexen <tuexen@FreeBSD.org>2014-10-06 17:04:26 +0000
commit88124f9e02fc7803f94dbf3ded02e455d255c479 (patch)
treec50d4bf2d873e74385fde051ea5a81cfe937e4d8 /sys/netinet
parentce3a76b52fb6ecf2961794008957eb6fb1d7c450 (diff)
downloadFreeBSD-src-88124f9e02fc7803f94dbf3ded02e455d255c479.zip
FreeBSD-src-88124f9e02fc7803f94dbf3ded02e455d255c479.tar.gz
MFC r272347:
The default for UDPLITE_RECV_CSCOV is zero. RFC 3828 recommend that this means full checksum coverage for received packets. If an application is willing to accept packets with partial coverage, it is expected to use the socket option and provide the minimum coverage it accepts.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/udp_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 52bc07a..f065f80 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -679,7 +679,7 @@ udp_input(struct mbuf *m, int off)
struct udpcb *up;
up = intoudpcb(inp);
- if (up->u_rxcslen > len) {
+ if (up->u_rxcslen == 0 || up->u_rxcslen > len) {
INP_RUNLOCK(inp);
m_freem(m);
return;
OpenPOWER on IntegriCloud