Skip to content
Snippets Groups Projects
Commit 79f15ca9 authored by Pierre LALET's avatar Pierre LALET
Browse files

Set a correct default value for ethernet type field (fixes issue #5102)

--HG--
branch : issue5102
parent 31eade20
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ class Ether(Packet): ...@@ -137,7 +137,7 @@ class Ether(Packet):
name = "Ethernet" name = "Ethernet"
fields_desc = [ DestMACField("dst"), fields_desc = [ DestMACField("dst"),
SourceMACField("src"), SourceMACField("src"),
XShortEnumField("type", 0x0000, ETHER_TYPES) ] XShortEnumField("type", 0x9000, ETHER_TYPES) ]
def hashret(self): def hashret(self):
return struct.pack("H",self.type)+self.payload.hashret() return struct.pack("H",self.type)+self.payload.hashret()
def answers(self, other): def answers(self, other):
......
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