From bbeee5ebc99b0fe94169769fb32f34535ab47aa6 Mon Sep 17 00:00:00 2001 From: ae Date: Thu, 13 Nov 2014 12:58:33 +0000 Subject: Count statistics for the specific address family. MFC after: 1 week Sponsored by: Yandex LLC --- sys/netipsec/ipsec_output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/netipsec') diff --git a/sys/netipsec/ipsec_output.c b/sys/netipsec/ipsec_output.c index 87cc7e8..885326c 100644 --- a/sys/netipsec/ipsec_output.c +++ b/sys/netipsec/ipsec_output.c @@ -165,11 +165,11 @@ ipsec_process_done(struct mbuf *m, struct ipsecrequest *isr) * doing further processing. */ if (isr->next) { - IPSECSTAT_INC(ips_out_bundlesa); /* XXX-BZ currently only support same AF bundles. */ switch (saidx->dst.sa.sa_family) { #ifdef INET case AF_INET: + IPSECSTAT_INC(ips_out_bundlesa); return ipsec4_process_packet(m, isr->next, 0, 0); /* NOTREACHED */ #endif @@ -177,6 +177,7 @@ ipsec_process_done(struct mbuf *m, struct ipsecrequest *isr) #ifdef INET6 case AF_INET6: /* XXX */ + IPSEC6STAT_INC(ips_out_bundlesa); return ipsec6_process_packet(m, isr->next); /* NOTREACHED */ #endif /* INET6 */ -- cgit v1.1