summaryrefslogtreecommitdiffstats
path: root/sys/netipsec
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2013-04-09 07:11:22 +0000
committerae <ae@FreeBSD.org>2013-04-09 07:11:22 +0000
commit844d612b2ac90320a94987519d82dca04334da1e (patch)
treea37444a753245c5a506d831125e8ba84425b9fc6 /sys/netipsec
parent11842319432af11ae4828f76bb503310ea1780a6 (diff)
downloadFreeBSD-src-844d612b2ac90320a94987519d82dca04334da1e.zip
FreeBSD-src-844d612b2ac90320a94987519d82dca04334da1e.tar.gz
Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats.
MFC after: 1 week
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/ipsec_input.c4
-rw-r--r--sys/netipsec/ipsec_output.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c
index b3349d5..1f9ae64 100644
--- a/sys/netipsec/ipsec_input.c
+++ b/sys/netipsec/ipsec_input.c
@@ -768,7 +768,7 @@ ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, int proto
nxt = nxt8;
while (nxt != IPPROTO_DONE) {
if (V_ip6_hdrnestlimit && (++nest > V_ip6_hdrnestlimit)) {
- V_ip6stat.ip6s_toomanyhdr++;
+ IP6STAT_INC(ip6s_toomanyhdr);
error = EINVAL;
goto bad;
}
@@ -778,7 +778,7 @@ ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, int proto
* more sanity checks in header chain processing.
*/
if (m->m_pkthdr.len < skip) {
- V_ip6stat.ip6s_tooshort++;
+ IP6STAT_INC(ip6s_tooshort);
in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_truncated);
error = EINVAL;
goto bad;
diff --git a/sys/netipsec/ipsec_output.c b/sys/netipsec/ipsec_output.c
index f263139..33054c0 100644
--- a/sys/netipsec/ipsec_output.c
+++ b/sys/netipsec/ipsec_output.c
@@ -863,7 +863,7 @@ ipsec6_output_tunnel(struct ipsec_output_state *state, struct secpolicy *sp, int
rtalloc_ign_fib(state->ro, 0UL, M_GETFIB(m));
}
if (state->ro->ro_rt == NULL) {
- V_ip6stat.ip6s_noroute++;
+ IP6STAT_INC(ip6s_noroute);
V_ipsec6stat.ips_out_noroute++;
error = EHOSTUNREACH;
goto bad;
OpenPOWER on IntegriCloud