diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-05 18:08:12 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-08 09:27:41 +0200 |
commit | 82add78f89fd8d21c647de5675e8e6304c8b8a4a (patch) | |
tree | 1f19623a0ed18433331f897cce1c9398446d3f65 /openbsc/tests/gbproxy/gbproxy_test.c | |
parent | 25f98e618adf888b938b7c1ce4c2d08cb0a357da (diff) |
gbproxy/test: Check APN patching while P-TMSI patching is enabled
This commit adds a single ACT PDP CTX REQ message to
test_gbproxy_ptmsi_patching() to check whether APN patching works in
this case, too.
Note that this doesn't work currently, the APN patch count is not
incremented.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/gbproxy/gbproxy_test.c')
-rw-r--r-- | openbsc/tests/gbproxy/gbproxy_test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/tests/gbproxy/gbproxy_test.c b/openbsc/tests/gbproxy/gbproxy_test.c index 12dc91457..514881e6f 100644 --- a/openbsc/tests/gbproxy/gbproxy_test.c +++ b/openbsc/tests/gbproxy/gbproxy_test.c @@ -1624,6 +1624,13 @@ static void test_gbproxy_ptmsi_patching() OSMO_ASSERT(tlli_info->sgsn_tlli.current == local_sgsn_tlli); OSMO_ASSERT(tlli_info->sgsn_tlli.assigned == 0); + send_llc_ul_ui(nsi, "ACT PDP CTX REQ (REPLACE APN)", &bss_peer[0], 0x1002, + local_bss_tlli, &rai_bss, cell_id, + GPRS_SAPI_GMM, bss_nu++, + dtap_act_pdp_ctx_req, sizeof(dtap_act_pdp_ctx_req)); + + dump_peers(stdout, 0, 0, &gbcfg); + /* Non-DTAP */ send_bssgp_ul_unitdata(nsi, "XID (UL)", &bss_peer[0], 0x1002, local_bss_tlli, &rai_bss, cell_id, |