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
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
d45bd9e0
Commit
d45bd9e0
authored
Jan 17, 2017
by
Alessio Deiana
Browse files
Options
Downloads
Patches
Plain Diff
Contrib gtp v2
parent
aa951f80
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
scapy/contrib/gtp.py
+8
-0
8 additions, 0 deletions
scapy/contrib/gtp.py
scapy/contrib/gtp_v2.py
+909
-0
909 additions, 0 deletions
scapy/contrib/gtp_v2.py
scapy/contrib/gtp_v2.uts
+336
-0
336 additions, 0 deletions
scapy/contrib/gtp_v2.uts
with
1253 additions
and
0 deletions
scapy/contrib/gtp.py
+
8
−
0
View file @
d45bd9e0
...
...
@@ -192,6 +192,14 @@ class GTPHeader(Packet):
self
.
version
==
other
.
version
and
self
.
payload
.
answers
(
other
.
payload
))
@classmethod
def
dispatch_hook
(
cls
,
_pkt
=
None
,
*
args
,
**
kargs
):
if
_pkt
and
len
(
_pkt
)
>=
1
:
if
(
struct
.
unpack
(
"
B
"
,
_pkt
[
0
])[
0
]
>>
5
)
&
0x7
==
2
:
import
gtp_v2
return
gtp_v2
.
GTPHeader
return
GTPHeader
class
GTPEchoRequest
(
Packet
):
# 3GPP TS 29.060 V9.1.0 (2009-12)
...
...
This diff is collapsed.
Click to expand it.
scapy/contrib/gtp_v2.py
0 → 100644
+
909
−
0
View file @
d45bd9e0
This diff is collapsed.
Click to expand it.
scapy/contrib/gtp_v2.uts
0 → 100644
+
336
−
0
View file @
d45bd9e0
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