From 746a439816972c44dd4d42b91cced8d235d27a99 Mon Sep 17 00:00:00 2001 From: Guillaume Valadon <guillaume@valadon.net> Date: Fri, 16 May 2014 09:31:02 +0200 Subject: [PATCH] Missing reference to the inet6 module --HG-- branch : Issue #5087 --- scapy/layers/inet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/layers/inet.py b/scapy/layers/inet.py index 7a2976c2..7f4093ea 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 -- GitLab