Home | History | Annotate | Download | only in traceroute

Lines Matching defs:ttl

42  * packets with a small ttl (time to live) then listening for an
44 * with a ttl of one and increase by one until we get an icmp "port
47 * probes (change with -q flag) are sent at each ttl setting and a
48 * line is printed showing the ttl, address of the gateway and
78 * packets with a zero ttl.
106 * with a ttl too small to reach us. 14 - 17 are running the
112 * sends an unreachable message using whatever ttl remains in the
113 * original datagram. Since, for gateways, the remaining ttl is
135 * is using the ttl from our arriving datagram as the ttl in its
138 * icmp's) until we probe with a ttl that's at least twice the path
140 * returns with a ttl of 1 is a clue this problem exists.
141 * Traceroute prints a "!" after the time if the ttl is <= 1.
283 u_char ttl; /* ttl packet left with */
308 unsigned char ttl:8;
310 unsigned char ttl:8;
444 int ttl, probe, i;
509 first_ttl = str2val(optarg, "first ttl", 1, 255);
536 max_ttl = str2val(optarg, "max ttl", 1, 255);
601 errx(1, "first ttl (%d) may not be greater than max ttl (%d)",
929 for (ttl = first_ttl; ttl <= max_ttl; ++ttl) {
947 send_probe(++seq, ttl, &t1);
975 Printf(" (ttl = %d)", ip->ip_ttl);
1240 send_probe(int seq, int ttl, struct timeval *tp)
1253 outip->ip_ttl = ttl;
1272 outsetup.ttl = ttl;
1331 (char *)&ttl, sizeof(ttl)) < 0)
1332 err(1, "setsockopt ttl %d", ttl);
1375 Printf("%2d ", ttl);