aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-16 01:05:47 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:20 +0800
commit1f38747cf12ffcf361aef163fe098bd1a6c5357d (patch)
treea4b7c9baf1ec163557e0c80fc22e8a5843db7cd9
parent48945b18cd703c1a3fa97984509951a5d36edf6b (diff)
[nat] Let IMSI DETACH and other messages pass by.
-rw-r--r--openbsc/src/nat/bsc_nat_utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index 32301f5a8..ca7a4c642 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -378,9 +378,8 @@ int bsc_nat_filter_sccp_cr(struct bsc_connection *bsc, struct msgb *msg, struct
hdr48->msg_type == GSM48_MT_RR_PAG_RESP) {
return _cr_check_pag_resp(bsc, &hdr48->data[0], hdr48_len - sizeof(*hdr48));
} else {
- LOGP(DNAT, LOGL_ERROR, "Unknown GSM48 content: proto: %d msg: %d\n",
- hdr48->proto_discr, hdr48->msg_type);
- return -1;
+ /* We only want to filter the above, let other things pass */
+ return 0;
}
}