Skip to content

Commit d7ae655

Browse files
authored
Fix WARNING about IPv46 (#4465)
1 parent ed7225d commit d7ae655

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scapy/arch/linux/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def send(self, x):
344344
sdto = (iff, conf.l3types.layer2num[type_x])
345345
if sn[3] in conf.l2types:
346346
ll = lambda x: conf.l2types.num2layer[sn[3]]() / x
347-
if self.lvl == 3 and type_x != self.LL:
347+
if self.lvl == 3 and not issubclass(self.LL, type_x):
348348
warning("Incompatible L3 types detected using %s instead of %s !",
349349
type_x, self.LL)
350350
self.LL = type_x

scapy/layers/inet6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def answers(self, other):
480480
return self.payload.answers(other.payload)
481481

482482

483-
class IPv46(IP):
483+
class IPv46(IP, IPv6):
484484
"""
485485
This class implements a dispatcher that is used to detect the IP version
486486
while parsing Raw IP pcap files.

0 commit comments

Comments
 (0)