aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/bsc_nat.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-20 09:55:46 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-20 10:13:36 +0100
commit415cd2eebb5313f044612385e09d8b8af9cfe674 (patch)
tree79d354b4d4758ca3648b5d25f12e1adc0914dccc /openbsc/include/openbsc/bsc_nat.h
parentead0529e076a1bd02b170796dc3895dabde7d2e8 (diff)
nat: Introduce reject cause to bsc_nat_acc_lst_entry
The filtering architecture already allowed to specify a reject reason but this has not been used for the access-lists. Extend the access-list to include a reject reason and extend the test case to honor it.
Diffstat (limited to 'openbsc/include/openbsc/bsc_nat.h')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index 150979b10..fe8e52137 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -247,6 +247,10 @@ struct bsc_nat_acc_lst_entry {
regex_t imsi_allow_re;
char *imsi_deny;
regex_t imsi_deny_re;
+
+ /* reject reasons for the access lists */
+ int cm_reject_cause;
+ int lu_reject_cause;
};
/**