aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat_utils.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-21 18:47:24 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-21 18:47:24 +0800
commitc53c2ab524620a173de332111ccbda60e22c484d (patch)
treebd1c0c3b45da47a76031affb2f321c32e9164cfa /openbsc/src/nat/bsc_nat_utils.c
parent32423500f6ad9b14744cf4ff5b73720ea90268d2 (diff)
[nat] Ignore paging that is to page by BSS...
We do not want to handle this identity. If we can not page by lac there is no need to page anything else.
Diffstat (limited to 'openbsc/src/nat/bsc_nat_utils.c')
-rw-r--r--openbsc/src/nat/bsc_nat_utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index 290ee4eaa..a2078d005 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -127,7 +127,11 @@ struct bsc_connection *bsc_nat_find_bsc(struct bsc_nat *nat, struct msgb *msg, i
data_length = TLVP_LEN(&tp, GSM0808_IE_CELL_IDENTIFIER_LIST);
data = TLVP_VAL(&tp, GSM0808_IE_CELL_IDENTIFIER_LIST);
- if (data[0] != CELL_IDENT_LAC) {
+
+ /* No need to try a different BSS */
+ if (data[0] == CELL_IDENT_BSS) {
+ return NULL;
+ } else if (data[0] != CELL_IDENT_LAC) {
LOGP(DNAT, LOGL_ERROR, "Unhandled cell ident discrminator: %d\n", data[0]);
return NULL;
}