aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc-nat
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-15 01:42:07 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-15 18:58:36 +0800
commitd880f54f4b345b18cda8bf939445d9d37304bc32 (patch)
tree0fce1d9c27f1f030dac9a1627792e4e732dea596 /openbsc/tests/bsc-nat
parent74e0a1b91c87804d25eb16eed47f3f83f962de6c (diff)
nat: Update the test for the new <0,0,1 semantic of the filter function
A test case with a TMSI is missing, this would be needed for better coverage of the filter test case.
Diffstat (limited to 'openbsc/tests/bsc-nat')
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c
index 8f4e2d152..0e936edfc 100644
--- a/openbsc/tests/bsc-nat/bsc_nat_test.c
+++ b/openbsc/tests/bsc-nat/bsc_nat_test.c
@@ -582,19 +582,19 @@ static struct cr_filter cr_filter[] = {
{
.data = bssmap_cr,
.length = sizeof(bssmap_cr),
- .result = 0,
+ .result = 1,
.contype = NAT_CON_TYPE_CM_SERV_REQ,
},
{
.data = bss_lu,
.length = sizeof(bss_lu),
- .result = 0,
+ .result = 1,
.contype = NAT_CON_TYPE_LU,
},
{
.data = pag_resp,
.length = sizeof(pag_resp),
- .result = 0,
+ .result = 1,
.contype = NAT_CON_TYPE_PAG_RESP,
},
{
@@ -609,7 +609,7 @@ static struct cr_filter cr_filter[] = {
/* BSC allow is before NAT deny */
.data = bss_lu,
.length = sizeof(bss_lu),
- .result = 0,
+ .result = 1,
.nat_imsi_deny = "[0-9]*",
.bsc_imsi_allow = "2440[0-9]*",
.contype = NAT_CON_TYPE_LU,
@@ -618,7 +618,7 @@ static struct cr_filter cr_filter[] = {
/* BSC allow is before NAT deny */
.data = bss_lu,
.length = sizeof(bss_lu),
- .result = 0,
+ .result = 1,
.bsc_imsi_allow = "[0-9]*",
.nat_imsi_deny = "[0-9]*",
.contype = NAT_CON_TYPE_LU,