aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/sndcp_xid/sndcp_xid_test.ok
diff options
context:
space:
mode:
authorPhilipp <pmaier@sysmocom.de>2016-08-10 12:08:03 +0200
committerHarald Welte <laforge@gnumonks.org>2016-09-24 03:17:58 +0000
commit22611be3d93b58ba96983247d71fa6be57fa0cb0 (patch)
treed3cf6edb86ad200de2689eabc45b6f70afa38264 /openbsc/tests/sndcp_xid/sndcp_xid_test.ok
parent308cb0719dca3ba8eed1eff2a2124d44f34d9a28 (diff)
SNDCP: add SNDCP-XID encoder/decoder and unit test
The SNDCP-XID (or layer-3 xid) is used to exchange layer-3 parameters such as compression. The encoder encodes a bytestream that is then sent as regular XID field from LLC. We will need the SNDCP-XID to negotiate the parameters for our upcomming GPRS data and header compression features Change-Id: If2d63fe2550864cafef3156b1dc0629037c49c1e
Diffstat (limited to 'openbsc/tests/sndcp_xid/sndcp_xid_test.ok')
-rw-r--r--openbsc/tests/sndcp_xid/sndcp_xid_test.ok11
1 files changed, 11 insertions, 0 deletions
diff --git a/openbsc/tests/sndcp_xid/sndcp_xid_test.ok b/openbsc/tests/sndcp_xid/sndcp_xid_test.ok
new file mode 100644
index 000000000..f3572827c
--- /dev/null
+++ b/openbsc/tests/sndcp_xid/sndcp_xid_test.ok
@@ -0,0 +1,11 @@
+Testing SNDCP XID-Decoder/Encoder (real world data)
+Decoded:
+Result length=54
+Encoded: 000100023182022789ffe0000f00a8000000010101000201020003010300040104000501050006000701070008010880000412004007
+Rencoded: 000100023182022789ffe0000f00a8000000010101000201020003010300040104000501050006000701070008010880000412004007
+
+Testing SNDCP XID-Encoder/Decoder
+Test input data:
+Encoded: 000100011a83010dab00208003012c012c02580258830007a000200308001402408000041200200781010c3456700040010005a80f000f82022789ffe0000f00a80000000101010002010200030103000401040005010500060007010700080108 (97 bytes)
+Decoded:
+Done