summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/raw_ip6.c
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/netinet6/raw_ip6.c
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/netinet6/raw_ip6.c')
-rw-r--r--sys/netinet6/raw_ip6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index 60960705..6689c71 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -296,7 +296,7 @@ rip6_input(struct mbuf **mp, int *offp, int proto)
if ((last != NULL) && ipsec6_in_reject(m, last)) {
m_freem(m);
V_ipsec6stat.in_polvio++;
- V_ip6stat.ip6s_delivered--;
+ IP6STAT_DEC(ip6s_delivered);
/* Do not inject data into pcb. */
INP_RUNLOCK(last);
} else
@@ -328,7 +328,7 @@ rip6_input(struct mbuf **mp, int *offp, int proto)
ICMP6_PARAMPROB_NEXTHEADER,
prvnxtp - mtod(m, char *));
}
- V_ip6stat.ip6s_delivered--;
+ IP6STAT_DEC(ip6s_delivered);
}
return (IPPROTO_DONE);
}
OpenPOWER on IntegriCloud