Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149212024
D17357.id48780.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
630 B
Referenced Files
None
Subscribers
None
D17357.id48780.diff
View Options
Index: head/sys/netinet/ip_output.c
===================================================================
--- head/sys/netinet/ip_output.c
+++ head/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
Tue, Mar 24, 1:06 AM (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30199127
Default Alt Text
D17357.id48780.diff (630 B)
Attached To
Mode
D17357: Convert UDP length to host byte order
Attached
Detach File
Event Timeline
Log In to Comment