diff options
author | ae <ae@FreeBSD.org> | 2013-04-09 07:11:22 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2013-04-09 07:11:22 +0000 |
commit | 844d612b2ac90320a94987519d82dca04334da1e (patch) | |
tree | a37444a753245c5a506d831125e8ba84425b9fc6 /sys/netinet/ip6.h | |
parent | 11842319432af11ae4828f76bb503310ea1780a6 (diff) | |
download | FreeBSD-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/netinet/ip6.h')
-rw-r--r-- | sys/netinet/ip6.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip6.h b/sys/netinet/ip6.h index c833a3d..8f49841 100644 --- a/sys/netinet/ip6.h +++ b/sys/netinet/ip6.h @@ -275,24 +275,24 @@ do { \ if (((m)->m_flags & M_LOOP) && \ ((m)->m_len < (off) + (hlen)) && \ (((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \ - V_ip6stat.ip6s_exthdrtoolong++; \ + IP6STAT_INC(ip6s_exthdrtoolong); \ return ret; \ } else if ((m)->m_flags & M_EXT) { \ if ((m)->m_len < (off) + (hlen)) { \ - V_ip6stat.ip6s_exthdrtoolong++; \ + IP6STAT_INC(ip6s_exthdrtoolong); \ m_freem(m); \ return ret; \ } \ } else { \ if ((m)->m_len < (off) + (hlen)) { \ - V_ip6stat.ip6s_exthdrtoolong++; \ + IP6STAT_INC(ip6s_exthdrtoolong); \ m_freem(m); \ return ret; \ } \ } \ } else { \ if ((m)->m_len < (off) + (hlen)) { \ - V_ip6stat.ip6s_tooshort++; \ + IP6STAT_INC(ip6s_tooshort); \ in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_truncated); \ m_freem(m); \ return ret; \ |