From c6d51f5fb477c9ebf0345edb088b86d70eb119a1 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 2 Dec 2015 15:44:34 +0100 Subject: gtphub: fix restart cleanup peer matching. Adjust test expectations accordingly. Sponsored-by: On-Waves ehi --- openbsc/tests/gtphub/gtphub_test.c | 6 +++--- openbsc/tests/gtphub/gtphub_test.ok | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'openbsc/tests') diff --git a/openbsc/tests/gtphub/gtphub_test.c b/openbsc/tests/gtphub/gtphub_test.c index 0992d7972..d07096368 100644 --- a/openbsc/tests/gtphub/gtphub_test.c +++ b/openbsc/tests/gtphub/gtphub_test.c @@ -1320,7 +1320,7 @@ static void test_peer_restarted(void) ); const char *gtp_req_to_ggsn = MSG_PDP_CTX_REQ("0068", - "6d32", /* mapped seq ("1234") */ + "6d33", /* mapped seq ("1234") */ "23", "42000121436587f9", "00000006", /* mapped TEI Data I ("123") */ @@ -1340,7 +1340,7 @@ static void test_peer_restarted(void) "192.168.42.23 (TEI C cba=5 / U abc=6)" " <-> 192.168.43.34 / (uninitialized) (TEI C 0=0 / U 0=0)" " @21955\n" - "192.168.42.23 (TEI C 321=1 / U 123=2)" + "(uninitialized) (TEI C 321=1 / U 123=2)" " <-> 192.168.43.34 (TEI C 765=3 / U 567=4)" " @21945\n" )); @@ -1348,7 +1348,7 @@ static void test_peer_restarted(void) const char *gtp_resp_from_ggsn = MSG_PDP_CTX_RSP("004e", "00000005", /* destination TEI (sent in req above) */ - "6d32", /* mapped seq */ + "6d33", /* mapped seq */ "01", /* restart */ "00000def", /* TEI U */ "00000fde", /* TEI C */ diff --git a/openbsc/tests/gtphub/gtphub_test.ok b/openbsc/tests/gtphub/gtphub_test.ok index a95fe6d4a..be9e19f08 100644 --- a/openbsc/tests/gtphub/gtphub_test.ok +++ b/openbsc/tests/gtphub/gtphub_test.ok @@ -19,6 +19,9 @@ test_peer_restarted returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123 - __wrap_gtphub_resolve_ggsn_addr(): returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123 +Out-of-band gtphub_write(16): +to 192.168.43.34 port 2123 +32 14 00 08 00 00 07 65 6d 32 00 00 13 ff 14 00 test_peer_restarted_reusing_tei - __wrap_gtphub_resolve_ggsn_addr(): returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123 -- cgit v1.2.3