From 2f1a984d4fe0980a9961ff089dc410e49d988967 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 25 Sep 2010 06:14:52 +0800 Subject: 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. --- openbsc/include/openbsc/bsc_nat.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'openbsc/include/openbsc') 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; -- cgit v1.2.3