Skip to content
Snippets Groups Projects
Commit d45bd9e0 authored by Alessio Deiana's avatar Alessio Deiana
Browse files

Contrib gtp v2

parent aa951f80
No related branches found
No related tags found
No related merge requests found
......@@ -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.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment