aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/gbproxy
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-10-18 22:12:17 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-19 12:10:24 +0200
commitf0f63a4113117cdd0cf2abf6ba5fb12828df7c60 (patch)
tree1426da6158815ebdb4e69a627914bf23cc935806 /openbsc/tests/gbproxy
parentda890c77330cd2e0f63ab0731fcc9cd2b2366c3c (diff)
gbproxy: Reject SGSN UNITDATA messages with an invalid BVCI
Currently such messages lead to a creation of a new peer with the SGSN's NSEI, which results in echoing the message back to the SGSN. This patch modifies this by sending a STATUS response (invalid BVCI) instead back to the SGSN. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/gbproxy')
-rw-r--r--openbsc/tests/gbproxy/gbproxy_test.ok11
1 files changed, 6 insertions, 5 deletions
diff --git a/openbsc/tests/gbproxy/gbproxy_test.ok b/openbsc/tests/gbproxy/gbproxy_test.ok
index fcde39f20..35d97e78b 100644
--- a/openbsc/tests/gbproxy/gbproxy_test.ok
+++ b/openbsc/tests/gbproxy/gbproxy_test.ok
@@ -804,14 +804,15 @@ PROCESSING UNITDATA from 0x05060708:32000
CALLBACK, event 0, msg length 0, bvci 0x10ff
-NS UNITDATA MESSAGE to SGSN, BVCI 0x10ff, msg length 0
+NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 10
+41 07 81 05 04 82 10 ff 15 80
+MESSAGE to SGSN at 0x05060708:32000, msg length 14
+00 00 00 00 41 07 81 05 04 82 10 ff 15 80
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 10 ff
-
-result (UNITDATA) = 4
+result (UNITDATA) = 14
Gbproxy global:
+ Invalid BVC Identifier : 1
===== NS protocol test END