diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-03 14:19:08 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-03 14:19:10 +0100 |
commit | 1ae3ebd68bdb1d33a99065be75946faf4cd0e766 (patch) | |
tree | 4612b33a146af5aa59d3f8bfb6267ee010b83229 /openbsc/tests/gtphub | |
parent | ca2361c23717fd13e33088d6dfe4e2370b714097 (diff) |
gtphub_test: tweak test_user_data(): no seq routing.
Don't route User message back by sequence number, rather test that a
completely unrelated User message is routed back properly.
Sponsored-by: On-Waves ehi
Diffstat (limited to 'openbsc/tests/gtphub')
-rw-r--r-- | openbsc/tests/gtphub/gtphub_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/tests/gtphub/gtphub_test.c b/openbsc/tests/gtphub/gtphub_test.c index d07096368..4281303e9 100644 --- a/openbsc/tests/gtphub/gtphub_test.c +++ b/openbsc/tests/gtphub/gtphub_test.c @@ -1191,7 +1191,7 @@ static void test_user_data(void) "ff" /* type 255: G-PDU */ "0058" /* length: 88 + 8 octets == 96 */ "00000004" /* mapped User TEI for GGSN from create_pdp_ctx() */ - "6d31" /* mapped seq */ + "1234" /* unknown seq */ "0000" /* No extensions */ /* User data (ICMP packet), 96 - 12 = 84 octets */ "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8" @@ -1203,15 +1203,15 @@ static void test_user_data(void) "ff" /* type 255: G-PDU */ "0058" /* length: 88 + 8 octets == 96 */ "00000567" /* unmapped User TEI */ - "0070" /* unmapped seq */ + "6d31" /* unmapped seq */ "0000" "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8" "4156000000007241010000000000101112131415161718191a1b1c1d1e1f" "202122232425262728292a2b2c2d2e2f3031323334353637" ; - OSMO_ASSERT(msg_from_sgsn_u(&resolved_sgsn_addr, - &ggsn_sender, + OSMO_ASSERT(msg_from_sgsn_u(&sgsn_sender, + &resolved_ggsn_addr, u_from_sgsn, u_to_ggsn)); |