From 65b7e62cea13b3962ab20711990b68a1c5b074c2 Mon Sep 17 00:00:00 2001
From: Pierre LALET <pierre.lalet@cea.fr>
Date: Sun, 4 Oct 2015 17:34:17 +0200
Subject: [PATCH] Bind layer PPP with IPv6 (fixes #5143)

---
 scapy/layers/ppp.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scapy/layers/ppp.py b/scapy/layers/ppp.py
index 50c68465..78504f94 100644
--- a/scapy/layers/ppp.py
+++ b/scapy/layers/ppp.py
@@ -13,6 +13,7 @@ import struct
 from scapy.packet import *
 from scapy.layers.l2 import *
 from scapy.layers.inet import *
+from scapy.layers.inet6 import IPv6
 from scapy.fields import *
 
 class PPPoE(Packet):
@@ -340,7 +341,8 @@ bind_layers( CookedLinux,   PPPoED,        proto=0x8863)
 bind_layers( CookedLinux,   PPPoE,         proto=0x8864)
 bind_layers( PPPoE,         PPP,           code=0)
 bind_layers( HDLC,          PPP,           )
-bind_layers( PPP,           IP,            proto=33)
+bind_layers( PPP,           IP,            proto=0x0021)
+bind_layers( PPP,           IPv6,          proto=0x0057)
 bind_layers( PPP,           PPP_IPCP,      proto=0x8021)
 bind_layers( PPP,           PPP_ECP,       proto=0x8053)
 bind_layers( Ether,         PPP_IPCP,      type=0x8021)
-- 
GitLab