svn commit: r274467 - head/sys/netipsec
Andrey V. Elsukov
ae at FreeBSD.org
Thu Nov 13 12:58:34 UTC 2014
Author: ae
Date: Thu Nov 13 12:58:33 2014
New Revision: 274467
URL: https://svnweb.freebsd.org/changeset/base/274467
Log:
Count statistics for the specific address family.
MFC after: 1 week
Sponsored by: Yandex LLC
Modified:
head/sys/netipsec/ipsec_output.c
Modified: head/sys/netipsec/ipsec_output.c
==============================================================================
--- head/sys/netipsec/ipsec_output.c Thu Nov 13 10:48:59 2014 (r274466)
+++ head/sys/netipsec/ipsec_output.c Thu Nov 13 12:58:33 2014 (r274467)
@@ -165,11 +165,11 @@ ipsec_process_done(struct mbuf *m, struc
* 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, struc
#ifdef INET6
case AF_INET6:
/* XXX */
+ IPSEC6STAT_INC(ips_out_bundlesa);
return ipsec6_process_packet(m, isr->next);
/* NOTREACHED */
#endif /* INET6 */
More information about the svn-src-all
mailing list