Lines Matching refs:ttl
63 __u32 ttl; member
89 int recverr(int fd, int ttl) in recverr() argument
141 if (rcvbuf.ttl == 0 || rcvbuf.tv.tv_sec == 0) { in recverr()
144 sndhops = rcvbuf.ttl; in recverr()
165 printf("%2d?: %*s ", ttl, -(HOST_COLUMN_SIZE - 1), "[LOCALHOST]"); in recverr()
177 printf("%2d?: ", ttl); in recverr()
216 hops_to = sndhops<0 ? ttl : sndhops; in recverr()
235 else if (sndhops<0 && rethops != ttl) in recverr()
258 int probe_ttl(int fd, int ttl) in probe_ttl() argument
268 hdr->ttl = ttl; in probe_ttl()
271 his[hisptr].hops = ttl; in probe_ttl()
275 res = recverr(fd, ttl); in probe_ttl()
287 printf("%2d?: reply received 8)\n", ttl); in probe_ttl()
290 return recverr(fd, ttl); in probe_ttl()
293 printf("%2d: send failed\n", ttl); in probe_ttl()
311 int ttl; in main() local
417 for (ttl = 1; ttl <= max_hops; ttl++) { in main()
421 on = ttl; in main()
432 res = probe_ttl(fd, ttl); in main()
442 printf("%2d: no reply\n", ttl); in main()