From 79f15ca93e2517c72c122a9a082011e495049de4 Mon Sep 17 00:00:00 2001
From: Pierre LALET <pierre.lalet@cea.fr>
Date: Wed, 10 Sep 2014 18:18:11 +0200
Subject: [PATCH] Set a correct default value for ethernet type field (fixes
 issue #5102)

--HG--
branch : issue5102
---
 scapy/layers/l2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scapy/layers/l2.py b/scapy/layers/l2.py
index 48de4b8f..03ff5f1f 100644
--- a/scapy/layers/l2.py
+++ b/scapy/layers/l2.py
@@ -137,7 +137,7 @@ class Ether(Packet):
     name = "Ethernet"
     fields_desc = [ DestMACField("dst"),
                     SourceMACField("src"),
-                    XShortEnumField("type", 0x0000, ETHER_TYPES) ]
+                    XShortEnumField("type", 0x9000, ETHER_TYPES) ]
     def hashret(self):
         return struct.pack("H",self.type)+self.payload.hashret()
     def answers(self, other):
-- 
GitLab