Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177618292
D21745.1794850951.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
500 B
Referenced Files
None
Subscribers
None
D21745.1794850951.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 5:42 PM (8 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41785150
Default Alt Text
D21745.1794850951.diff (500 B)
Attached To
Mode
D21745: debugnet(4): Check hardware-validated UDP checksums
Attached
Detach File
Event Timeline