aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-25 06:14:52 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-25 16:15:23 +0800
commit2f1a984d4fe0980a9961ff089dc410e49d988967 (patch)
treea8078eea62cd86a106c33ceaa5ff13d60adf87a4 /openbsc/include/openbsc
parent568b9682e062943b6fd0cd34cebf38d265b2c84f (diff)
nat: Add statistics to the access-list in the NAT
Count how many times we match a BSC or NAT deny. This will give us the number of how often something should be filtered.
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index ff0ee484c..f988a8f67 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -152,9 +152,17 @@ struct bsc_nat_statistics {
} msc;
};
+enum bsc_nat_acc_ctr {
+ ACC_LIST_BSC_FILTER,
+ ACC_LIST_NAT_FILTER,
+};
+
struct bsc_nat_acc_lst {
struct llist_head list;
+ /* counter */
+ struct rate_ctr_group *stats;
+
/* the name of the list */
const char *name;
struct llist_head fltr_list;