From 726b257932ffbde877012f0b7e3cb4c41bcb75e4 Mon Sep 17 00:00:00 2001
From: Pierre LALET <pierre.lalet@cea.fr>
Date: Fri, 17 Jan 2014 11:20:50 +0100
Subject: [PATCH] Changed registration order for CookedLinux layer 2 type.

Linktype 113 (the "real" CookedLinux) is used by default.
Fixes issue #5081.

--HG--
branch : issue5081
---
 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 a14294c4..749d571b 100644
--- a/scapy/layers/l2.py
+++ b/scapy/layers/l2.py
@@ -420,8 +420,8 @@ conf.l2types.register(ARPHDR_ETHER, Ether)
 conf.l2types.register_num2layer(ARPHDR_METRICOM, Ether)
 conf.l2types.register_num2layer(ARPHDR_LOOPBACK, Ether)
 conf.l2types.register_layer2num(ARPHDR_ETHER, Dot3)
-conf.l2types.register(113, CookedLinux)
 conf.l2types.register(144, CookedLinux)  # called LINUX_IRDA, similar to CookedLinux
+conf.l2types.register(113, CookedLinux)
 
 conf.l3types.register(ETH_P_ARP, ARP)
 
-- 
GitLab