Page MenuHomeFreeBSD

D21745.diff
No OneTemporary

D21745.diff

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;

File Metadata

Mime Type
text/plain
Expires
Fri, Feb 14, 7:25 AM (19 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16639235
Default Alt Text
D21745.diff (500 B)

Event Timeline