Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152438940
D17357.id48574.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
615 B
Referenced Files
None
Subscribers
None
D17357.id48574.diff
View Options
Index: sys/netinet/ip_output.c
===================================================================
--- sys/netinet/ip_output.c
+++ sys/netinet/ip_output.c
@@ -932,10 +932,11 @@
if (m->m_pkthdr.csum_flags & CSUM_UDP) {
/* if udp header is not in the first mbuf copy udplen */
- if (offset + sizeof(struct udphdr) > m->m_len)
+ if (offset + sizeof(struct udphdr) > m->m_len) {
m_copydata(m, offset + offsetof(struct udphdr,
uh_ulen), sizeof(cklen), (caddr_t)&cklen);
- else {
+ cklen = ntohs(cklen);
+ } else {
uh = (struct udphdr *)mtodo(m, offset);
cklen = ntohs(uh->uh_ulen);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 15, 11:37 PM (7 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31561781
Default Alt Text
D17357.id48574.diff (615 B)
Attached To
Mode
D17357: Convert UDP length to host byte order
Attached
Detach File
Event Timeline
Log In to Comment