summaryrefslogtreecommitdiffstats
path: root/sys/netipsec
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2014-11-13 12:58:33 +0000
committerae <ae@FreeBSD.org>2014-11-13 12:58:33 +0000
commitbbeee5ebc99b0fe94169769fb32f34535ab47aa6 (patch)
tree8b3199d6601e7dc8ce6fe9bc2d659cfa8ca3f1e6 /sys/netipsec
parentafe36fb4229daa757c598e302c7b0db490670562 (diff)
downloadFreeBSD-src-bbeee5ebc99b0fe94169769fb32f34535ab47aa6.zip
FreeBSD-src-bbeee5ebc99b0fe94169769fb32f34535ab47aa6.tar.gz
Count statistics for the specific address family.
MFC after: 1 week Sponsored by: Yandex LLC
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/ipsec_output.c3
1 files changed, 2 insertions, 1 deletions
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 */
OpenPOWER on IntegriCloud