summaryrefslogtreecommitdiffstats
path: root/usr.sbin/traceroute
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-08-21 04:31:28 +0000
committerpeter <peter@FreeBSD.org>1996-08-21 04:31:28 +0000
commit85129e1a54d3bd2f465113cb1583bb8ced7c51de (patch)
tree97cf400ef7b9e821170b5255b9c3038d429f9a0a /usr.sbin/traceroute
parent1cd0d327acca6a18efd103f822e6fbbc1d7a83f8 (diff)
downloadFreeBSD-src-85129e1a54d3bd2f465113cb1583bb8ced7c51de.zip
FreeBSD-src-85129e1a54d3bd2f465113cb1583bb8ced7c51de.tar.gz
Back out part of my previous commit. The bug was fixed over 12 months
ago in FreeBSD more cleanly.
Diffstat (limited to 'usr.sbin/traceroute')
-rw-r--r--usr.sbin/traceroute/traceroute.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c
index 7df7b72..5e0ce7b 100644
--- a/usr.sbin/traceroute/traceroute.c
+++ b/usr.sbin/traceroute/traceroute.c
@@ -1,6 +1,6 @@
#ifndef lint
static char *rcsid =
- "@(#)$Header: /home/ncvs/src/usr.sbin/traceroute/traceroute.c,v 1.7 1996/08/13 16:28:59 fenner Exp $ (LBL)";
+ "@(#)$Header: /home/ncvs/src/usr.sbin/traceroute/traceroute.c,v 1.8 1996/08/17 10:37:28 peter Exp $ (LBL)";
#endif
/*
@@ -564,16 +564,6 @@ main(int argc, char **argv)
send_probe(++seq, ttl, &t1);
while ((cc = wait_for_reply(s, &from, &t1)) != 0) {
(void) gettimeofday(&t2, &tz);
- /*
- * Since we'll be receiving all ICMP
- * messages to this host above, we may
- * never end up with cc=0, so we need
- * an additional termination check.
- */
- if (t2.tv_sec - t1.tv_sec > waittime) {
- cc = 0;
- break;
- }
if ((i = packet_ok(packet, cc, &from, seq))) {
double T;
int precis;
OpenPOWER on IntegriCloud