Skip to content
Snippets Groups Projects
Commit 65b7e62c authored by Pierre LALET's avatar Pierre LALET
Browse files

Bind layer PPP with IPv6 (fixes #5143)

parent d36cba89
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ import struct ...@@ -13,6 +13,7 @@ import struct
from scapy.packet import * from scapy.packet import *
from scapy.layers.l2 import * from scapy.layers.l2 import *
from scapy.layers.inet import * from scapy.layers.inet import *
from scapy.layers.inet6 import IPv6
from scapy.fields import * from scapy.fields import *
class PPPoE(Packet): class PPPoE(Packet):
...@@ -340,7 +341,8 @@ bind_layers( CookedLinux, PPPoED, proto=0x8863) ...@@ -340,7 +341,8 @@ bind_layers( CookedLinux, PPPoED, proto=0x8863)
bind_layers( CookedLinux, PPPoE, proto=0x8864) bind_layers( CookedLinux, PPPoE, proto=0x8864)
bind_layers( PPPoE, PPP, code=0) bind_layers( PPPoE, PPP, code=0)
bind_layers( HDLC, PPP, ) 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_IPCP, proto=0x8021)
bind_layers( PPP, PPP_ECP, proto=0x8053) bind_layers( PPP, PPP_ECP, proto=0x8053)
bind_layers( Ether, PPP_IPCP, type=0x8021) bind_layers( Ether, PPP_IPCP, type=0x8021)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment