int maxTTL = 30; /* inline with traceroute */
/* end ttl window stuff. */
int remoteport = 80; /* for TCP tracing */
-int timeout = 10 * 1000000; /* for TCP tracing */
+int tcp_timeout = 10 * 1000000; /* for TCP tracing */
/* default display field(defined by key in net.h) and order */
}
break;
case 'Z':
- timeout = atoi(optarg);
- timeout *= 1000000;
+ tcp_timeout = atoi(optarg);
+ tcp_timeout *= 1000000;
break;
case '4':
af = AF_INET;
extern int af; /* address family of remote target */
extern int mtrtype; /* type of query packet used */
extern int remoteport; /* target port for TCP tracing */
-extern int timeout; /* timeout for TCP connections */
+extern int tcp_timeout; /* timeout for TCP connections */
#ifdef SO_MARK
extern int mark; /* SO_MARK to set for ping packet*/
#endif
}
if (fd > 0) {
utime = sequence[at].time.tv_sec * 1000000L + sequence[at].time.tv_usec;
- if (unow - utime > timeout) {
+ if (unow - utime > tcp_timeout) {
close(fd);
sequence[at].socket = 0;
}