Skip to content

Commit 65b7e62

Browse files
committed
Bind layer PPP with IPv6 (fixes #5143)
1 parent d36cba8 commit 65b7e62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scapy/layers/ppp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from scapy.packet import *
1414
from scapy.layers.l2 import *
1515
from scapy.layers.inet import *
16+
from scapy.layers.inet6 import IPv6
1617
from scapy.fields import *
1718

1819
class PPPoE(Packet):
@@ -340,7 +341,8 @@ class PPP_ECP(Packet):
340341
bind_layers( CookedLinux, PPPoE, proto=0x8864)
341342
bind_layers( PPPoE, PPP, code=0)
342343
bind_layers( HDLC, PPP, )
343-
bind_layers( PPP, IP, proto=33)
344+
bind_layers( PPP, IP, proto=0x0021)
345+
bind_layers( PPP, IPv6, proto=0x0057)
344346
bind_layers( PPP, PPP_IPCP, proto=0x8021)
345347
bind_layers( PPP, PPP_ECP, proto=0x8053)
346348
bind_layers( Ether, PPP_IPCP, type=0x8021)

0 commit comments

Comments
 (0)