summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip6.h
diff options
context:
space:
mode:
authoritojun <itojun@FreeBSD.org>2000-07-12 16:39:13 +0000
committeritojun <itojun@FreeBSD.org>2000-07-12 16:39:13 +0000
commita0611dac11da5a5f15fc55fbaf0375b9c7574662 (patch)
tree88cc0bd20b8436ea9d231de629d14bff2d941189 /sys/netinet/ip6.h
parent8f207589cd310fc72f85128f5a1e01e33279ebdb (diff)
downloadFreeBSD-src-a0611dac11da5a5f15fc55fbaf0375b9c7574662.zip
FreeBSD-src-a0611dac11da5a5f15fc55fbaf0375b9c7574662.tar.gz
remove m_pulldown statistics, which is highly experimental and does not
belong to *bsd-merged tree
Diffstat (limited to 'sys/netinet/ip6.h')
-rw-r--r--sys/netinet/ip6.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/netinet/ip6.h b/sys/netinet/ip6.h
index c194043..77d1ab6 100644
--- a/sys/netinet/ip6.h
+++ b/sys/netinet/ip6.h
@@ -214,36 +214,30 @@ struct ip6_frag {
* supposed to never be matched but is prepared just in case.
*/
-#ifdef INET6
-#define IP6_EXTHDR_STAT(x) x
-#else
-#define IP6_EXTHDR_STAT(x)
-#endif
-
#define IP6_EXTHDR_CHECK(m, off, hlen, ret) \
do { \
if ((m)->m_next != NULL) { \
if (((m)->m_flags & M_LOOP) && \
((m)->m_len < (off) + (hlen)) && \
(((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \
- IP6_EXTHDR_STAT(ip6stat.ip6s_exthdrtoolong++); \
+ ip6stat.ip6s_exthdrtoolong++; \
return ret; \
} else if ((m)->m_flags & M_EXT) { \
if ((m)->m_len < (off) + (hlen)) { \
- IP6_EXTHDR_STAT(ip6stat.ip6s_exthdrtoolong++); \
+ ip6stat.ip6s_exthdrtoolong++; \
m_freem(m); \
return ret; \
} \
} else { \
if ((m)->m_len < (off) + (hlen)) { \
- IP6_EXTHDR_STAT(ip6stat.ip6s_exthdrtoolong++); \
+ ip6stat.ip6s_exthdrtoolong++; \
m_freem(m); \
return ret; \
} \
} \
} else { \
if ((m)->m_len < (off) + (hlen)) { \
- IP6_EXTHDR_STAT(ip6stat.ip6s_tooshort++); \
+ ip6stat.ip6s_tooshort++; \
in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_truncated); \
m_freem(m); \
return ret; \
@@ -265,7 +259,6 @@ do { \
do { \
struct mbuf *t; \
int tmp; \
- IP6_EXTHDR_STAT(ip6stat.ip6s_exthdrget++); \
if ((m)->m_len >= (off) + (len)) \
(val) = (typ)(mtod((m), caddr_t) + (off)); \
else { \
@@ -284,7 +277,6 @@ do { \
#define IP6_EXTHDR_GET0(val, typ, m, off, len) \
do { \
struct mbuf *t; \
- IP6_EXTHDR_STAT(ip6stat.ip6s_exthdrget0++); \
if ((off) == 0) \
(val) = (typ)mtod(m, caddr_t); \
else { \
OpenPOWER on IntegriCloud