Lines Matching refs:ttl
76 __u32 ttl; member
102 int recverr(int fd, int ttl) in recverr() argument
164 if (rcvbuf.ttl == 0 || rcvbuf.tv.tv_sec == 0) in recverr()
167 sndhops = rcvbuf.ttl; in recverr()
207 printf("%2d?: %-32s ", ttl, "[LOCALHOST]"); in recverr()
217 printf("%2d?: ", ttl); in recverr()
275 hops_to = sndhops<0 ? ttl : sndhops; in recverr()
297 else if (sndhops<0 && rethops != ttl) in recverr()
320 int probe_ttl(int fd, int ttl) in probe_ttl() argument
331 hdr->ttl = ttl; in probe_ttl()
341 his[hisptr].hops = ttl; in probe_ttl()
345 res = recverr(fd, ttl); in probe_ttl()
357 printf("%2d?: reply received 8)\n", ttl); in probe_ttl()
360 return recverr(fd, ttl); in probe_ttl()
363 printf("%2d: send failed\n", ttl); in probe_ttl()
380 int ttl; in main() local
535 for (ttl = 1; ttl <= max_hops; ttl++) { in main()
539 on = ttl; in main()
561 res = probe_ttl(fd, ttl); in main()
571 printf("%2d: no reply\n", ttl); in main()