We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed7225d commit d7ae655Copy full SHA for d7ae655
scapy/arch/linux/__init__.py
@@ -344,7 +344,7 @@ def send(self, x):
344
sdto = (iff, conf.l3types.layer2num[type_x])
345
if sn[3] in conf.l2types:
346
ll = lambda x: conf.l2types.num2layer[sn[3]]() / x
347
- if self.lvl == 3 and type_x != self.LL:
+ if self.lvl == 3 and not issubclass(self.LL, type_x):
348
warning("Incompatible L3 types detected using %s instead of %s !",
349
type_x, self.LL)
350
self.LL = type_x
scapy/layers/inet6.py
@@ -480,7 +480,7 @@ def answers(self, other):
480
return self.payload.answers(other.payload)
481
482
483
-class IPv46(IP):
+class IPv46(IP, IPv6):
484
"""
485
This class implements a dispatcher that is used to detect the IP version
486
while parsing Raw IP pcap files.
0 commit comments