#! /bin/sh /usr/share/dpatch/dpatch-run ## 30_respect-prohibition.dpatch by Graeme Hewson ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: This patch adds support for administratively prohibited destinations @DPATCH@ diff -urNad traceroute-nanog-6.3.10~/traceroute.c traceroute-nanog-6.3.10/traceroute.c --- traceroute-nanog-6.3.10~/traceroute.c 2003-12-06 04:05:00.000000000 +0900 +++ traceroute-nanog-6.3.10/traceroute.c 2007-05-22 22:26:45.135691169 +0900 @@ -126,7 +126,8 @@ * probes. * * Other possible annotations after the time are !H, !N, !P (got a host, - * network or protocol unreachable, respectively), !S or !F (source + * network or protocol unreachable, respectively), !A, !C (access to the + * network or host, respectively, is prohibited), !S or !F (source * route failed or fragmentation needed -- neither of these should * ever occur and the associated gateway is busted if you see one). If * almost all the probes result in some kind of unreachable, traceroute @@ -1703,6 +1704,14 @@ ++unreachable; Fprintf(stdout," !S"); break; + case ICMP_UNREACH_NET_PROHIB: + ++unreachable; + Fprintf(stdout," !A"); + break; + case ICMP_UNREACH_HOST_PROHIB: + ++unreachable; + Fprintf(stdout," !C"); + break; } /* end switch */ }