From d880f54f4b345b18cda8bf939445d9d37304bc32 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 15 Sep 2010 01:42:07 +0800 Subject: 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. --- openbsc/tests/bsc-nat/bsc_nat_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'openbsc') 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, -- cgit v1.2.3