diff --git a/sys/netinet6/ip6_ipsec.c b/sys/netinet6/ip6_ipsec.c index cbc56542020a..9867e66a1996 100644 --- a/sys/netinet6/ip6_ipsec.c +++ b/sys/netinet6/ip6_ipsec.c @@ -70,6 +70,7 @@ __FBSDID("$FreeBSD$"); #endif /*IPSEC*/ #include +#include extern struct protosw inet6sw[]; @@ -128,7 +129,7 @@ ip6_ipsec_fwd(struct mbuf *m) KEY_FREESP(&sp); splx(s); if (error) { - ip6stat.ips_cantforward++; + ip6stat.ip6s_cantforward++; return 1; } #endif /* IPSEC */