Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pathfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def processNmapFile(inputNmapXmlFile, outputDotPngFile, skipDestHost, destIpToNe
hops = run.trace.hop

# check if last hop equals to target host (else skip due to incomplete traceroute)
if run.address["addr"] != hops[len(hops)-1]["ipaddr"]:
last_hop = hops[-1] if hops else None

if run.address and last_hop and run.address["addr"] != last_hop["ipaddr"]:
print(" Incomplete traceroute for host")
continue

Expand Down