Contents of /trunk/traceroute/patches/traceroute-1.4-target-resolv.patch
Parent Directory | Revision Log
Revision 153 -
(show annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 539 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 539 byte(s)
-import
1 | --- ../traceroute-1.4a12/traceroute.c Thu Dec 14 10:04:50 2000 |
2 | +++ traceroute.c Thu Oct 23 13:09:39 2003 |
3 | @@ -764,8 +764,12 @@ |
4 | } |
5 | #endif |
6 | |
7 | - Fprintf(stderr, "%s to %s (%s)", |
8 | - prog, hostname, inet_ntoa(to->sin_addr)); |
9 | + Fprintf(stderr, "%s to ",prog); |
10 | + if (nflag) |
11 | + Fprintf(stderr,"%s",hostname); |
12 | + else |
13 | + Fprintf(stderr,"%s",inetname(to->sin_addr)); |
14 | + Fprintf(stderr," (%s)", inet_ntoa(to->sin_addr)); |
15 | if (source) |
16 | Fprintf(stderr, " from %s", source); |
17 | Fprintf(stderr, ", %d hops max, %d byte packets\n", max_ttl, packlen); |
18 |