From e0602343e528b8c9a53f20a0a40994eb1bb33436 Mon Sep 17 00:00:00 2001
From: "rbu@localhost.localdomain" <rbu@localhost.localdomain>
Date: Mon, 20 Apr 2009 19:43:01 +0200
Subject: [PATCH] Bind Layer IPv6 for CookedLinux packets as well (ticket #314)

---
 scapy/layers/inet6.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scapy/layers/inet6.py b/scapy/layers/inet6.py
index b5fd451c..f30ac79a 100644
--- a/scapy/layers/inet6.py
+++ b/scapy/layers/inet6.py
@@ -2943,6 +2943,7 @@ conf.l3types.register(ETH_P_IPV6, IPv6)
 conf.l2types.register(31, IPv6)
 
 bind_layers(Ether,     IPv6,     type = 0x86dd )
+bind_layers(CookedLinux, IPv6,   proto = 0x86dd )
 bind_layers(IPerror6,  TCPerror, nh = socket.IPPROTO_TCP )
 bind_layers(IPerror6,  UDPerror, nh = socket.IPPROTO_UDP )
 bind_layers(IPv6,      TCP,      nh = socket.IPPROTO_TCP )
-- 
GitLab