diff options
Diffstat (limited to 'toys/pending/traceroute.c')
-rw-r--r-- | toys/pending/traceroute.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/toys/pending/traceroute.c b/toys/pending/traceroute.c index 1cfdc480..c6bcfc31 100644 --- a/toys/pending/traceroute.c +++ b/toys/pending/traceroute.c @@ -218,7 +218,7 @@ static void do_trace() fflush(NULL); if (!TT.istraceroute6) - if (probe && (toys.optflags & FLAG_z)) usleep(TT.pause_time * 1000); + if (probe && (toys.optflags & FLAG_z)) msleep(TT.pause_time); if (!TT.istraceroute6) send_probe4(++seq, ttl); else send_probe6(++seq, ttl); @@ -477,7 +477,7 @@ static void do_trace() void traceroute_main(void) { - unsigned opt_len = 0, pack_size = 0, tyser = 0; + unsigned pack_size = 0, tyser = 0; int lsrr = 0, set = 1; if(!(toys.optflags & FLAG_4) && @@ -499,7 +499,6 @@ void traceroute_main(void) resolve_addr(node->arg, AF_INET, SOCK_STREAM, 0, &sin); TT.gw_list[lsrr] = sin.sin_addr.s_addr; } - opt_len = (lsrr + 1) * sizeof(TT.gw_list[0]); } else TT.first_ttl = 1; TT.msg_len = pack_size = ICMP_HD_SIZE4; //udp payload is also 8bytes |