From 415cd2eebb5313f044612385e09d8b8af9cfe674 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 20 Jan 2014 09:55:46 +0100 Subject: 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. --- openbsc/src/osmo-bsc_nat/bsc_nat_utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat_utils.c') diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c b/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c index bc8c4c1f3..236a0fb05 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c @@ -468,6 +468,8 @@ struct bsc_nat_acc_lst_entry *bsc_nat_acc_lst_entry_create(struct bsc_nat_acc_ls if (!entry) return NULL; + entry->cm_reject_cause = GSM48_REJECT_PLMN_NOT_ALLOWED; + entry->lu_reject_cause = GSM48_REJECT_PLMN_NOT_ALLOWED; llist_add_tail(&entry->list, &lst->fltr_list); return entry; } -- cgit v1.2.3