Skip to content
Snippets Groups Projects
Commit 0ec5af25 authored by Guillaume Valadon's avatar Guillaume Valadon Committed by GitHub
Browse files

Merge pull request #472 from Osso/gtpv2

Contrib gtp v2
parents 65aded24 d45bd9e0
No related branches found
No related tags found
No related merge requests found
...@@ -192,6 +192,14 @@ class GTPHeader(Packet): ...@@ -192,6 +192,14 @@ class GTPHeader(Packet):
self.version == other.version and self.version == other.version and
self.payload.answers(other.payload)) 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): class GTPEchoRequest(Packet):
# 3GPP TS 29.060 V9.1.0 (2009-12) # 3GPP TS 29.060 V9.1.0 (2009-12)
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment