diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-28 21:14:51 +0200 |
---|---|---|
committer | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2013-09-04 21:28:53 +0400 |
commit | 741481d3e007f6cc38b3e8d090a49be1caf99b12 (patch) | |
tree | b57d66b322572085b217b405e9807ec7d2914e63 /tests/emu/pcu_emu.cpp | |
parent | 4ea940787e5ce4085f248300eaa522fa7a26f909 (diff) |
emu: Send a static GPRS ATTACH request and wait for the reply.
This will send a static message. It will trigger the GMM code
on the SGSN and might ask us for the IMEI/IMSI or send us an
accept. As we are not replying at all the SGSN needs to send new
requests and we can observe if the sequence number is increasing
like it should.
Diffstat (limited to 'tests/emu/pcu_emu.cpp')
-rw-r--r-- | tests/emu/pcu_emu.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/emu/pcu_emu.cpp b/tests/emu/pcu_emu.cpp index f78285d5..337c0c8f 100644 --- a/tests/emu/pcu_emu.cpp +++ b/tests/emu/pcu_emu.cpp @@ -36,6 +36,8 @@ void *tall_pcu_ctx; struct gprs_rlcmac_bts *gprs_rlcmac_bts; int16_t spoof_mnc = 0, spoof_mcc = 0; +extern void test_replay_gprs_attach(struct gprs_bssgp_pcu *pcu); + struct gprs_rlcmac_bts *create_bts() { struct gprs_rlcmac_bts *bts; @@ -62,9 +64,10 @@ struct gprs_rlcmac_bts *create_bts() return bts; } -static void bvci_unblocked(struct gprs_bssgp_pcu *pci) +static void bvci_unblocked(struct gprs_bssgp_pcu *pcu) { printf("BVCI unblocked. We can begin with test cases.\n"); + test_replay_gprs_attach(pcu); } void create_and_connect_bssgp(struct gprs_rlcmac_bts *bts, |