Skip to content
Snippets Groups Projects
Commit 0854a941 authored by Pierre Lalet's avatar Pierre Lalet
Browse files

Merged in gvaladon/scapy-issues/Issue #5087 (pull request #59)

Fix for issue #5087
parents b0d6c469 746a4398
No related branches found
No related tags found
No related merge requests found
...@@ -1135,7 +1135,7 @@ class TracerouteResult(SndRcvList): ...@@ -1135,7 +1135,7 @@ class TracerouteResult(SndRcvList):
trace_id = (s.src,s.dst,s.proto,0) trace_id = (s.src,s.dst,s.proto,0)
trace = rt.get(trace_id,{}) trace = rt.get(trace_id,{})
ttl = conf.ipv6_enabled and scapy.layers.inet6.IPv6 in s and s.hlim or s.ttl 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: if trace_id in ports_done:
continue continue
ports_done[trace_id] = None ports_done[trace_id] = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment