Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- increment per-interface statistics against a bogus packet in IP6_EX…

…THDR_CHECK

- added an include file to route6.c according to the above change
  • Loading branch information...
commit bd33ace160514375f6346ac4a6372591e8d0af97 1 parent 2d43948
jinmei authored
Showing with 3 additions and 1 deletion.
  1. +2 −1  kame/sys/netinet6/ip6.h
  2. +1 −0  kame/sys/netinet6/route6.c
View
3  kame/sys/netinet6/ip6.h
@@ -235,7 +235,8 @@ do { \
} \
else { \
if ((m)->m_len < (off) + (hlen)) { \
- ip6stat.ip6s_toosmall++; \
+ ip6stat.ip6s_tooshort++; \
+ in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_truncated); \
m_freem(m); \
return ret; \
} \
View
1  kame/sys/netinet6/route6.c
@@ -35,6 +35,7 @@
#include <netinet/in.h>
#include <netinet6/in6.h>
+#include <netinet6/in6_var.h>
#include <netinet6/ip6.h>
#include <netinet6/ip6_var.h>
Please sign in to comment.
Something went wrong with that request. Please try again.