diff --git a/scapy/layers/inet.py b/scapy/layers/inet.py index 7a2976c2012ece5030f4e6a0738a571f03c61cc7..7f4093ea3d9a1417e66f7c4ce077fff4824894b2 100644 --- a/scapy/layers/inet.py +++ b/scapy/layers/inet.py @@ -1135,7 +1135,7 @@ class TracerouteResult(SndRcvList): trace_id = (s.src,s.dst,s.proto,0) trace = rt.get(trace_id,{}) ttl = conf.ipv6_enabled and scapy.layers.inet6.IPv6 in s and s.hlim or s.ttl - if not (ICMP in r and r[ICMP].type == 11) and not (conf.ipv6_enabled and scapy.layers.inet6.IPv6 in r and ICMPv6TimeExceeded in r): + if not (ICMP in r and r[ICMP].type == 11) and not (conf.ipv6_enabled and scapy.layers.inet6.IPv6 in r and scapy.layers.inet6.ICMPv6TimeExceeded in r): if trace_id in ports_done: continue ports_done[trace_id] = None