Skip to content
Snippets Groups Projects
Commit c6652993 authored by Klement Sekera's avatar Klement Sekera Committed by Guillaume Valadon
Browse files

MPLS - improve payload guess

parent 272e3bb7
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ class MPLS(Packet):
def guess_payload_class(self, payload):
if len(payload) >= 1:
if not self.s:
return MPLS
ip_version = (ord(payload[0]) >> 4) & 0xF
if ip_version == 4:
return IP
......
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