diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-04-30 17:47:16 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-04-30 17:47:16 +0200 |
commit | f764a15c2339d5b24f0258d6605d5c38229209cc (patch) | |
tree | f3b7ddf50ee98c9ed2c906bd86428f5c40bd1bc3 /src/tests/test-ranap.ok | |
parent | 02601c878585732ec75e33d02a45e5ab1147d4a1 (diff) |
Add test case about RANAP MaxBitrate encoding
Our version of asn1c/libasn1c used to have an INTEGER encoding but,
where the encoding of integers of > 2 bytes length was broken.
Add a test case to what we expect with the updated/fixed libasn1c.
If your compilation breaks, please upate to libasn1c with related
fix commited a few minutes ago.
Diffstat (limited to 'src/tests/test-ranap.ok')
-rw-r--r-- | src/tests/test-ranap.ok | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/tests/test-ranap.ok b/src/tests/test-ranap.ok index 3e9bcda..430535c 100644 --- a/src/tests/test-ranap.ok +++ b/src/tests/test-ranap.ok @@ -1,3 +1,14 @@ +Encoded MaxBitRate 1 to 00 00 +Encoded MaxBitRate 2 to 00 01 +Encoded MaxBitRate 3 to 00 02 +Encoded MaxBitRate 255 to 00 fe +Encoded MaxBitRate 256 to 00 ff +Encoded MaxBitRate 257 to 40 01 00 +Encoded MaxBitRate 64000 to 40 f9 ff +Encoded MaxBitRate 65535 to 40 ff fe +Encoded MaxBitRate 65536 to 40 ff ff +Encoded MaxBitRate 65537 to 80 01 00 00 +Encoded MaxBitRate 16000000 to 80 f4 23 ff ==> DIRECT TRANSFER <RANAP_IE> @@ -77,7 +88,7 @@ <firstValue> 38 02 D8 01 2F A7 20 2F A8 00 00 F4 4C 08 0A 02 80 00 51 40 00 27 20 28 14 00 67 40 00 00 22 28 - 14 00 3C 40 00 00 00 50 3D 02 00 02 0D C0 35 00 + 14 00 3C 40 00 00 00 50 3D 02 02 00 0D C0 35 00 01 0A 0B 0C 0D 40 00 00 00 01 </firstValue> <secondCriticality><ignore/></secondCriticality> @@ -90,11 +101,11 @@ 00 00 01 00 35 00 3A 38 02 D8 01 2F A7 20 2F A8 00 00 F4 4C 08 0A 02 80 00 51 40 00 27 20 28 14 00 67 40 00 00 22 28 14 00 3C 40 00 00 00 50 3D - 02 00 02 0D C0 35 00 01 0A 0B 0C 0D 40 00 00 00 + 02 02 00 0D C0 35 00 01 0A 0B 0C 0D 40 00 00 00 01 40 01 00 </value> </RANAP_IE> -00 00 00 4b 00 00 01 00 36 40 44 00 00 01 00 35 00 3a 38 02 d8 01 2f a7 20 2f a8 00 00 f4 4c 08 0a 02 80 00 51 40 00 27 20 28 14 00 67 40 00 00 22 28 14 00 3c 40 00 00 00 50 3d 02 00 02 0d c0 35 00 01 0a 0b 0c 0d 40 00 00 00 01 40 01 00 +00 00 00 4b 00 00 01 00 36 40 44 00 00 01 00 35 00 3a 38 02 d8 01 2f a7 20 2f a8 00 00 f4 4c 08 0a 02 80 00 51 40 00 27 20 28 14 00 67 40 00 00 22 28 14 00 3c 40 00 00 00 50 3d 02 02 00 0d c0 35 00 01 0a 0b 0c 0d 40 00 00 00 01 40 01 00 ==> RAB ASSIGNMENT COMMAND (DATA) <RANAP_ProtocolIE-FieldPair> @@ -102,7 +113,7 @@ <firstCriticality><reject/></firstCriticality> <firstValue> 38 04 10 DE 18 69 FF 80 0C 34 FF 00 1F 40 08 06 - 08 9E 00 00 04 1B 80 35 00 01 1A 1B 1C 1D 00 11 + 08 9E 00 04 00 1B 80 35 00 01 1A 1B 1C 1D 00 11 22 33 44 </firstValue> <secondCriticality><ignore/></secondCriticality> @@ -113,12 +124,12 @@ <criticality><ignore/></criticality> <value> 00 00 01 00 35 00 23 38 04 10 DE 18 69 FF 80 0C - 34 FF 00 1F 40 08 06 08 9E 00 00 04 1B 80 35 00 + 34 FF 00 1F 40 08 06 08 9E 00 04 00 1B 80 35 00 01 1A 1B 1C 1D 00 11 22 33 44 40 06 78 1C 00 00 00 00 </value> </RANAP_IE> -00 00 00 39 00 00 01 00 36 40 32 00 00 01 00 35 00 23 38 04 10 de 18 69 ff 80 0c 34 ff 00 1f 40 08 06 08 9e 00 00 04 1b 80 35 00 01 1a 1b 1c 1d 00 11 22 33 44 40 06 78 1c 00 00 00 00 +00 00 00 39 00 00 01 00 36 40 32 00 00 01 00 35 00 23 38 04 10 de 18 69 ff 80 0c 34 ff 00 1f 40 08 06 08 9e 00 04 00 1b 80 35 00 01 1a 1b 1c 1d 00 11 22 33 44 40 06 78 1c 00 00 00 00 ==> RESET CMD <RANAP_IE> |