Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
f64a06f3
Commit
f64a06f3
authored
10 years ago
by
Guillaume Valadon
Browse files
Options
Downloads
Patches
Plain Diff
IE_MSInternationalNumber added
--HG-- branch : GTP support
parent
a5d8291b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/contrib/gtp.py
+12
-2
12 additions, 2 deletions
scapy/contrib/gtp.py
with
12 additions
and
2 deletions
scapy/contrib/gtp.py
+
12
−
2
View file @
f64a06f3
...
@@ -279,6 +279,15 @@ class IE_GSNAddress(Packet):
...
@@ -279,6 +279,15 @@ class IE_GSNAddress(Packet):
def
extract_padding
(
self
,
pkt
):
def
extract_padding
(
self
,
pkt
):
return
""
,
pkt
return
""
,
pkt
class
IE_MSInternationalNumber
(
Packet
):
name
=
"
MS International Number
"
fields_desc
=
[
ByteEnumField
(
"
ietype
"
,
134
,
IEType
),
ShortField
(
"
length
"
,
None
),
FlagsField
(
"
flags
"
,
0
,
8
,
[
"
Extension
"
,
""
,
""
,
"
International Number
"
,
""
,
""
,
""
,
"
ISDN numbering
"
]),
StrLenField
(
"
digits
"
,
"
33607080910
"
,
length_from
=
lambda
x
:
x
.
length
-
1
)
]
def
extract_padding
(
self
,
pkt
):
return
""
,
pkt
class
IE_NotImplemented
(
Packet
):
class
IE_NotImplemented
(
Packet
):
name
=
"
IE not implemented
"
name
=
"
IE not implemented
"
fields_desc
=
[
ByteEnumField
(
"
ietype
"
,
0
,
IEType
),
fields_desc
=
[
ByteEnumField
(
"
ietype
"
,
0
,
IEType
),
...
@@ -291,8 +300,9 @@ ietypecls = { 1: IE_Cause, 2: IE_IMSI, 3: IE_Routing, 15: IE_SelectionMode, 16
...
@@ -291,8 +300,9 @@ ietypecls = { 1: IE_Cause, 2: IE_IMSI, 3: IE_Routing, 15: IE_SelectionMode, 16
17
:
IE_TEICP
,
19
:
IE_Teardown
,
20
:
IE_NSAPI
,
26
:
IE_ChargingCharacteristics
,
17
:
IE_TEICP
,
19
:
IE_Teardown
,
20
:
IE_NSAPI
,
26
:
IE_ChargingCharacteristics
,
27
:
IE_TraceReference
,
28
:
IE_TraceType
,
27
:
IE_TraceReference
,
28
:
IE_TraceType
,
128
:
IE_EndUserAddress
,
131
:
IE_AccessPointName
,
132
:
IE_NotImplemented
,
128
:
IE_EndUserAddress
,
131
:
IE_AccessPointName
,
132
:
IE_NotImplemented
,
133
:
IE_GSNAddress
,
134
:
IE_NotImplemented
,
135
:
IE_NotImplemented
,
133
:
IE_GSNAddress
,
134
:
IE_MSInternationalNumber
,
135
:
IE_NotImplemented
,
148
:
IE_NotImplemented
,
151
:
IE_NotImplemented
,
152
:
IE_NotImplemented
,
148
:
IE_NotImplemented
,
151
:
IE_NotImplemented
,
152
:
IE_NotImplemented
,
153
:
IE_NotImplemented
,
154
:
IE_NotImplemented
}
153
:
IE_NotImplemented
,
154
:
IE_NotImplemented
}
def
IE_Dispatcher
(
s
):
def
IE_Dispatcher
(
s
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment