summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/raw_ip6.h
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2013-06-19 20:48:34 +0000
committerae <ae@FreeBSD.org>2013-06-19 20:48:34 +0000
commitfc846316eb4b100af1a6fa2e0e5272a89243a887 (patch)
tree1e66a3ab1b61c0d9b66294554b7f5789b37eec19 /sys/netinet6/raw_ip6.h
parenta7d8c6740e98c0b5295a3ce9a28b08b98b314c7b (diff)
downloadFreeBSD-src-fc846316eb4b100af1a6fa2e0e5272a89243a887.zip
FreeBSD-src-fc846316eb4b100af1a6fa2e0e5272a89243a887.tar.gz
Use RIP6STAT_INC() macro for raw ip6 statistics accounting.
MFC after: 2 weeks
Diffstat (limited to 'sys/netinet6/raw_ip6.h')
-rw-r--r--sys/netinet6/raw_ip6.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet6/raw_ip6.h b/sys/netinet6/raw_ip6.h
index 23395a6..cc4bcdd 100644
--- a/sys/netinet6/raw_ip6.h
+++ b/sys/netinet6/raw_ip6.h
@@ -48,6 +48,8 @@ struct rip6stat {
};
#ifdef _KERNEL
+#define RIP6STAT_ADD(name, val) V_rip6stat.name += (val)
+#define RIP6STAT_INC(name) RIP6STAT_ADD(name, 1)
VNET_DECLARE(struct rip6stat, rip6stat);
#define V_rip6stat VNET(rip6stat)
#endif
OpenPOWER on IntegriCloud