Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160619392
D57816.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
989 B
Referenced Files
None
Subscribers
None
D57816.diff
View Options
diff --git a/sys/netinet/tcp_stacks/rack_bbr_common.c b/sys/netinet/tcp_stacks/rack_bbr_common.c
--- a/sys/netinet/tcp_stacks/rack_bbr_common.c
+++ b/sys/netinet/tcp_stacks/rack_bbr_common.c
@@ -173,7 +173,7 @@
return (-1);
}
}
- ip6 = (struct ip6_hdr *)(eh + 1);
+ ip6 = mtod(m, struct ip6_hdr *);
th = (struct tcphdr *)(ip6 + 1);
drop_hdrlen = sizeof(*ip6);
tlen = ntohs(ip6->ip6_plen);
@@ -205,7 +205,7 @@
return (-1);
}
}
- ip = (struct ip *)(eh + 1);
+ ip = mtod(m, struct ip *);
th = (struct tcphdr *)(ip + 1);
drop_hdrlen = sizeof(*ip);
iptos = ip->ip_tos;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 27, 6:46 AM (11 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34322903
Default Alt Text
D57816.diff (989 B)
Attached To
Mode
D57816: rack_bbr_common: Stale eh pointer used after m_adj() and m_pullup()
Attached
Detach File
Event Timeline
Log In to Comment