From dcce196be96c842bde791f8838a07206fd9fdd24 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Tue, 8 Oct 2013 12:04:43 +0200 Subject: tests/gb: Add test for GPRS NS protocol This tests the connection establishment by directly calling gprs_ns_rcvmsg() and printing the resulting messages and the NS-VC list. --- tests/gb/gprs_ns_test.ok | 124 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 tests/gb/gprs_ns_test.ok (limited to 'tests/gb/gprs_ns_test.ok') diff --git a/tests/gb/gprs_ns_test.ok b/tests/gb/gprs_ns_test.ok new file mode 100644 index 00000000..4a449077 --- /dev/null +++ b/tests/gb/gprs_ns_test.ok @@ -0,0 +1,124 @@ +===== NS protocol test START +PROCESSING RESET from 0x01020304:1111 +02 00 81 01 01 82 11 22 04 82 11 22 + +RESPONSE, msg length 1 +0a + +RESPONSE, msg length 9 +03 01 82 11 22 04 82 11 22 + +result (RESET) = 9 + +Current NS-VCIs: + VCI 0x1122, NSEI 0x1122, peer 0x01020304:1111 + +PROCESSING ALIVE from 0x01020304:1111 +0a + +RESPONSE, msg length 1 +0b + +result (ALIVE) = 1 + +PROCESSING UNBLOCK from 0x01020304:1111 +06 + +RESPONSE, msg length 1 +07 + +result (UNBLOCK) = 1 + +PROCESSING BSSGP RESET from 0x01020304:1111 +00 00 00 00 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 + +CALLBACK, event 0, msg length 18, bvci 0x0000 +22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 + +result (BSSGP RESET) = 0 + +--- Peer port changes, RESET, message remains unchanged --- + +PROCESSING RESET from 0x01020304:2222 +02 00 81 01 01 82 11 22 04 82 11 22 + +RESPONSE, msg length 1 +0a + +RESPONSE, msg length 9 +03 01 82 11 22 04 82 11 22 + +result (RESET) = 9 + +Current NS-VCIs: + VCI 0x1122, NSEI 0x1122, peer 0x01020304:2222 + +--- Peer port changes, RESET, VCI changes --- + +PROCESSING RESET from 0x01020304:3333 +02 00 81 01 01 82 33 44 04 82 11 22 + +RESPONSE, msg length 1 +0a + +RESPONSE, msg length 9 +03 01 82 33 44 04 82 11 22 + +result (RESET) = 9 + +Current NS-VCIs: + VCI 0x3344, NSEI 0x1122, peer 0x01020304:3333 + +--- Peer port changes, RESET, NSEI changes --- + +PROCESSING RESET from 0x01020304:4444 +02 00 81 01 01 82 11 22 04 82 33 44 + +RESPONSE, msg length 1 +0a + +RESPONSE, msg length 9 +03 01 82 11 22 04 82 33 44 + +result (RESET) = 9 + +Current NS-VCIs: + VCI 0x1122, NSEI 0x3344, peer 0x01020304:4444 + VCI 0x3344, NSEI 0x1122, peer 0x01020304:3333 + +--- Peer port 3333, RESET, VCI is changed back --- + +PROCESSING RESET from 0x01020304:3333 +02 00 81 01 01 82 11 22 04 82 11 22 + +RESPONSE, msg length 1 +0a + +RESPONSE, msg length 9 +03 01 82 11 22 04 82 11 22 + +result (RESET) = 9 + +Current NS-VCIs: + VCI 0x1122, NSEI 0x3344, peer 0x01020304:4444 + VCI 0x1122, NSEI 0x1122, peer 0x01020304:3333 + +--- Peer port 4444, RESET, NSEI is changed back --- + +PROCESSING RESET from 0x01020304:4444 +02 00 81 01 01 82 11 22 04 82 11 22 + +RESPONSE, msg length 1 +0a + +RESPONSE, msg length 9 +03 01 82 11 22 04 82 11 22 + +result (RESET) = 9 + +Current NS-VCIs: + VCI 0x1122, NSEI 0x1122, peer 0x01020304:4444 + VCI 0x1122, NSEI 0x1122, peer 0x01020304:3333 + +===== NS protocol test END + -- cgit v1.2.3