diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2013-07-09 14:38:26 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2013-07-09 14:38:26 +0000 |
commit | e5aeb83c4287f125fb534065ad3ac19f9b261511 (patch) | |
tree | 0f1f691ae5db9e397b1a3894db77516c0c274a14 /sys/netinet | |
parent | db20714a8790815d6d18de5a671ae8849342773c (diff) | |
download | src-e5aeb83c4287f125fb534065ad3ac19f9b261511.tar.gz src-e5aeb83c4287f125fb534065ad3ac19f9b261511.zip |
Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
accounting.
X-MFC with: r252026
Notes
Notes:
svn path=/head/; revision=253099
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 361c6b3d7ac7..f65c262971bf 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; } |