From ceabd8caa3f38d40d9837d2b2d8af6cb95147ac3 Mon Sep 17 00:00:00 2001 From: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Date: Sat, 22 Apr 2017 15:26:15 +0200 Subject: [PATCH] Bind EAP to PPP layer --- scapy/layers/ppp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scapy/layers/ppp.py b/scapy/layers/ppp.py index 191e8373..b3f69735 100644 --- a/scapy/layers/ppp.py +++ b/scapy/layers/ppp.py @@ -11,7 +11,7 @@ PPP (Point to Point Protocol) import struct from scapy.packet import Packet, bind_layers -from scapy.layers.l2 import Ether, CookedLinux, GRE_PPTP +from scapy.layers.l2 import EAP, Ether, CookedLinux, GRE_PPTP from scapy.layers.inet import IP from scapy.layers.inet6 import IPv6 from scapy.fields import BitField, ByteEnumField, ByteField, \ @@ -559,6 +559,7 @@ 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, EAP, proto=0xc227) bind_layers( PPP, IP, proto=0x0021) bind_layers( PPP, IPv6, proto=0x0057) bind_layers( PPP, PPP_IPCP, proto=0x8021) -- GitLab