Skip to content

Commit

Permalink
Simply return value from icmp_unreachable chain function
Browse files Browse the repository at this point in the history
  • Loading branch information
irl committed Oct 19, 2016
1 parent ade0b77 commit 8b626af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pathspider/observer/icmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@

def icmp_setup(rec, ip):
rec['icmp_unreachable'] = False

return True

def icmp_unreachable(rec, ip, q, rev):
if rev and ip.icmp.type == ICMP_UNREACHABLE:
rec['icmp_unreachable'] = True
return False
return True

return not rec['icmp_unreachable']

0 comments on commit 8b626af

Please sign in to comment.