Lines Matching refs:ttl
110 static void send_probe4(int seq, int ttl)
132 res = setsockopt(TT.snd_sock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl));
133 if (res < 0) perror_exit("setsockopt ttl %d", ttl);
142 static void send_probe6(int seq, int ttl)
151 if (setsockopt(TT.snd_sock, SOL_IPV6, IPV6_UNICAST_HOPS, &ttl,
152 sizeof(ttl)) < 0) error_exit("setsockopt ttl %d", ttl);
199 int seq, fexit, ttl, tv = TT.wait_time * 1000;
207 for (ttl = TT.first_ttl; ttl <= TT.max_ttl; ++ttl) {
214 xprintf("%2d", ttl);
223 if (!TT.istraceroute6) send_probe4(++seq, ttl);
224 else send_probe6(++seq, ttl);
593 error_exit("ERROR :Range for -f is 1 to %ld (max ttl)", TT.max_ttl);