From a4376adb54c3921da00f96ec7ad7df4de095d756 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 21 Apr 2010 18:47:24 +0800 Subject: [PATCH] [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. --- openbsc/src/nat/bsc_nat_utils.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c index 0815a4ab5..28b1bc7a5 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; }