2 * MIPL Mobile IPv6 Statistics header file
4 * $Id: s.stats.h 1.11 03/04/10 13:09:54+03:00 anttit@jon.mipl.mediapoli.com $
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
21 struct mipv6_statistics {
52 struct mipv6_drop n_bu_drop;
53 struct mipv6_drop n_ba_drop;
54 struct mipv6_drop n_brr_drop;
55 struct mipv6_drop n_be_drop;
56 struct mipv6_drop n_ha_drop;
59 extern struct mipv6_statistics mipv6_stats;
62 /* atomic_t is max 24 bits long */
63 #define MIPV6_INC_STATS(X) atomic_inc((atomic_t *)&mipv6_stats.X);
65 #define MIPV6_INC_STATS(X) mipv6_stats.X++;
68 int mipv6_stats_init(void);
69 void mipv6_stats_exit(void);