Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LI - Lawful Interception
Trial
Commits
ffaae999
Commit
ffaae999
authored
Feb 08, 2022
by
canterburym
Browse files
Removing unsafe test values
parent
a94fe2cd
Pipeline
#10591
passed with stage
in 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
testing/decode_33128.py
View file @
ffaae999
...
...
@@ -7,13 +7,6 @@ from encode_33128 import *
# it seems, that the python asn1tools doesnt support the "EXTENSIBILITY IMPLIED" feature that
# is used in the 33-128.asn definition - so this record is not decoded when using version 16 of 33-128.asn unless you manually modify the schema.
# asn1c seems to have the same issues. This means, the implementations are not forward compatible :-(
data
=
array
(
'B'
,
[
48
,
130
,
1
,
32
,
161
,
130
,
0
,
87
,
128
,
7
,
4
,
0
,
2
,
2
,
5
,
1
,
28
,
129
,
13
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
163
,
130
,
0
,
32
,
160
,
130
,
0
,
21
,
128
,
5
,
50
,
50
,
50
,
50
,
50
,
129
,
12
,
49
,
57
,
56
,
46
,
53
,
49
,
46
,
49
,
48
,
48
,
46
,
50
,
129
,
5
,
0
,
233
,
99
,
67
,
134
,
132
,
1
,
16
,
133
,
19
,
50
,
48
,
50
,
49
,
49
,
50
,
49
,
54
,
49
,
52
,
50
,
51
,
53
,
56
,
46
,
53
,
51
,
49
,
90
,
136
,
1
,
1
,
162
,
130
,
0
,
193
,
160
,
130
,
0
,
189
,
48
,
130
,
0
,
185
,
128
,
1
,
3
,
162
,
130
,
0
,
178
,
147
,
129
,
175
,
48
,
130
,
0
,
171
,
129
,
5
,
4
,
19
,
15
,
0
,
3
,
162
,
130
,
0
,
160
,
167
,
130
,
0
,
156
,
161
,
130
,
0
,
17
,
129
,
15
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
130
,
1
,
0
,
163
,
130
,
0
,
18
,
130
,
16
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
164
,
130
,
0
,
14
,
129
,
12
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
165
,
130
,
0
,
3
,
129
,
1
,
1
,
167
,
130
,
0
,
75
,
161
,
130
,
0
,
71
,
161
,
130
,
0
,
54
,
162
,
130
,
0
,
50
,
161
,
130
,
0
,
18
,
161
,
130
,
0
,
9
,
129
,
3
,
50
,
50
,
50
,
130
,
2
,
50
,
50
,
130
,
3
,
50
,
50
,
50
,
162
,
130
,
0
,
21
,
161
,
130
,
0
,
9
,
129
,
3
,
50
,
50
,
50
,
130
,
2
,
50
,
50
,
130
,
6
,
4
,
34
,
34
,
34
,
34
,
34
,
131
,
1
,
0
,
132
,
1
,
10
,
133
,
8
,
43
,
48
,
49
,
58
,
48
,
48
,
43
,
48
,
137
,
1
,
1
,
138
,
1
,
10
])
# Replaces the out-of-spec RATType value with 0x01
modified_data
=
array
(
'B'
,
[
48
,
130
,
1
,
32
,
161
,
130
,
0
,
87
,
128
,
7
,
4
,
0
,
2
,
2
,
5
,
1
,
28
,
129
,
13
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
163
,
130
,
0
,
32
,
160
,
130
,
0
,
21
,
128
,
5
,
50
,
50
,
50
,
50
,
50
,
129
,
12
,
49
,
57
,
56
,
46
,
53
,
49
,
46
,
49
,
48
,
48
,
46
,
50
,
129
,
5
,
0
,
233
,
99
,
67
,
134
,
132
,
1
,
16
,
133
,
19
,
50
,
48
,
50
,
49
,
49
,
50
,
49
,
54
,
49
,
52
,
50
,
51
,
53
,
56
,
46
,
53
,
51
,
49
,
90
,
136
,
1
,
1
,
162
,
130
,
0
,
193
,
160
,
130
,
0
,
189
,
48
,
130
,
0
,
185
,
128
,
1
,
3
,
162
,
130
,
0
,
178
,
147
,
129
,
175
,
48
,
130
,
0
,
171
,
129
,
5
,
4
,
19
,
15
,
0
,
3
,
162
,
130
,
0
,
160
,
167
,
130
,
0
,
156
,
161
,
130
,
0
,
17
,
129
,
15
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
130
,
1
,
0
,
163
,
130
,
0
,
18
,
130
,
16
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
164
,
130
,
0
,
14
,
129
,
12
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
50
,
165
,
130
,
0
,
3
,
129
,
1
,
1
,
167
,
130
,
0
,
75
,
161
,
130
,
0
,
71
,
161
,
130
,
0
,
54
,
162
,
130
,
0
,
50
,
161
,
130
,
0
,
18
,
161
,
130
,
0
,
9
,
129
,
3
,
50
,
50
,
50
,
130
,
2
,
50
,
50
,
130
,
3
,
50
,
50
,
50
,
162
,
130
,
0
,
21
,
161
,
130
,
0
,
9
,
129
,
3
,
50
,
50
,
50
,
130
,
2
,
50
,
50
,
130
,
6
,
4
,
34
,
34
,
34
,
34
,
34
,
131
,
1
,
0
,
132
,
1
,
1
,
133
,
8
,
43
,
48
,
49
,
58
,
48
,
48
,
43
,
48
,
137
,
1
,
1
,
138
,
1
,
1
])
modified_data_payload_only
=
modified_data
[:
-
153
]
modified_data_payload_only
[
0
]
=
0x30
compiler
=
getCompilerFor33128
()
print
(
'***decoding pspdu***'
)
...
...
@@ -21,7 +14,6 @@ print('***decoding pspdu***')
generated
=
generateIRIPayload
()
print
(
compiler
.
decode
(
'IRIPayload'
,
generated
))
#pspdu = foo.decode('PS-PDU', modified_data)
#print(pspdu)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment