117: if ( hop == 0 ) {
118: printf("ICMP reply from %s: %d bytes %d ms TTL=%d\n", inet_ntop(AF_INET, &p->ip.ip_src, rbuf, sizeof(rbuf)), re, tim.lo - state->start_time.lo, p->ip.ip_ttl);
119: } else {
120: printf(" %2d %4d ms %s\n", hop, tim.lo - state->start_time.lo, inet_ntop(AF_INET, &p->ip.ip_src, rbuf, sizeof(rbuf)));
121: }
162:
163: printf("sending ICMP packet: id=%x, seq=%d\n", state->xid, state->seq);
164: re = so_sendto(sd, &p, sizeof p, 0, (struct sockaddr*)&sa, sizeof sa);
214: a.s_addr = addr;
215: printf("traceroute to %s, 30 hops max\n", inet_ntop(AF_INET, &a, rbuf, sizeof(rbuf)));
216: for(hop = 1; hop <= 30; hop++) {