diff options
author | tuexen <tuexen@FreeBSD.org> | 2013-07-09 14:38:26 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2013-07-09 14:38:26 +0000 |
commit | 5719f9fad9eccf9166228d620a87a56a7a8d2a95 (patch) | |
tree | 0f1f691ae5db9e397b1a3894db77516c0c274a14 /sys/netinet | |
parent | 5a396d8c5b8d8b793f2c2c30756c6b6a6e8629dd (diff) | |
download | FreeBSD-src-5719f9fad9eccf9166228d620a87a56a7a8d2a95.zip FreeBSD-src-5719f9fad9eccf9166228d620a87a56a7a8d2a95.tar.gz |
Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
accounting.
X-MFC with: r252026
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/sctp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index 361c6b3..f65c262 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -5705,7 +5705,7 @@ sctp_common_input_processing(struct mbuf **mm, int iphlen, int offset, int lengt #ifdef INET case AF_INET: if (ipsec4_in_reject(m, &inp->ip_inp.inp)) { - MODULE_GLOBAL(ipsec4stat).in_polvio++; + IPSECSTAT_INC(in_polvio); SCTP_STAT_INCR(sctps_hdrops); goto out; } @@ -5714,7 +5714,7 @@ sctp_common_input_processing(struct mbuf **mm, int iphlen, int offset, int lengt #ifdef INET6 case AF_INET6: if (ipsec6_in_reject(m, &inp->ip_inp.inp)) { - MODULE_GLOBAL(ipsec6stat).in_polvio++; + IPSEC6STAT_INC(in_polvio); SCTP_STAT_INCR(sctps_hdrops); goto out; } |