Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109836221
D39234.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
681 B
Referenced Files
None
Subscribers
None
D39234.diff
View Options
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -675,7 +675,7 @@
KASSERT(!IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_dst),
("%s: unspecified destination v6 address", __func__));
if (IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) {
- /* XXX stat */
+ IP6STAT_INC(ip6s_badscope); /* XXX */
goto drop;
}
iptos = IPV6_TRAFFIC_CLASS(ip6);
@@ -745,7 +745,7 @@
KASSERT(ip->ip_dst.s_addr != INADDR_ANY,
("%s: unspecified destination v4 address", __func__));
if (__predict_false(ip->ip_src.s_addr == INADDR_ANY)) {
- /* XXX stat */
+ IPSTAT_INC(ips_badaddr);
goto drop;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 3:54 AM (9 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16588516
Default Alt Text
D39234.diff (681 B)
Attached To
Mode
D39234: tcp: update error counter when dropping a packet due to bad source
Attached
Detach File
Event Timeline
Log In to Comment