Page MenuHomeFreeBSD

D39234.diff
No OneTemporary

D39234.diff

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

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)

Event Timeline