summaryrefslogtreecommitdiff
path: root/usr.sbin/traceroute/traceroute.h
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-01-13 18:00:11 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-01-13 18:00:11 +0000
commit0ed25f9a076f2e5f91e48c5a09c23e4c4769cd43 (patch)
tree26092e879765e252a830c6707ea6b2622e6f72a1 /usr.sbin/traceroute/traceroute.h
parent6b2292d4adcc4581c83bfd43a4b38aaa3088470b (diff)
traceroute never sees a timeout when poll(2) returns when it receives
a packet not intended for us. E.g. a ping(8) is running in parallel. In this case we need to account for the time we already waited. Pointed out by Gabriel Nieto <gabnietof AT gmail>, thanks! Looks good to and input millert@
Diffstat (limited to 'usr.sbin/traceroute/traceroute.h')
-rw-r--r--usr.sbin/traceroute/traceroute.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/traceroute/traceroute.h b/usr.sbin/traceroute/traceroute.h
index 8b9e435c119..2729ac30e9b 100644
--- a/usr.sbin/traceroute/traceroute.h
+++ b/usr.sbin/traceroute/traceroute.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: traceroute.h,v 1.1 2016/09/03 22:00:06 benno Exp $ */
+/* $OpenBSD: traceroute.h,v 1.2 2017/01/13 18:00:10 florian Exp $ */
/* $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $ */
/*
@@ -137,7 +137,7 @@ extern u_char proto;
#define ICMP_CODE 0;
extern int verbose;
-extern int waittime; /* time to wait for response (in seconds) */
+extern int curwaittime; /* time left to wait for response */
extern int nflag; /* print addresses numerically */
extern int dump;
extern int Aflag; /* lookup ASN */