Source code for pathspider.observer.icmp


ICMP_UNREACHABLE = 3

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