Index: head/sys/net/debugnet_inet.c =================================================================== --- head/sys/net/debugnet_inet.c +++ head/sys/net/debugnet_inet.c @@ -196,6 +196,15 @@ return; } + if ((m->m_pkthdr.csum_flags & CSUM_PSEUDO_HDR) != 0) { + if ((m->m_pkthdr.csum_flags & CSUM_DATA_VALID) == 0) { + DNETDEBUG("bad UDP checksum\n"); + return; + } + } else { + /* XXX */ ; + } + /* UDP custom is to have packet length not include IP header. */ ip->ip_len -= hlen;