do not use select() (use undocumented --no-select option) because it's busted
otherwise; from mjc
This commit is contained in:
parent
0d6b2aeaa3
commit
2cc1bbea45
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-tcptraceroute_c,v 1.3 2004/01/04 23:23:43 espie Exp $
|
||||
--- tcptraceroute.c.orig 2004-01-05 00:20:43.000000000 +0100
|
||||
+++ tcptraceroute.c 2004-01-05 00:21:12.000000000 +0100
|
||||
$OpenBSD: patch-tcptraceroute_c,v 1.4 2004/03/23 19:22:02 pvalchev Exp $
|
||||
--- tcptraceroute.c.orig 2002-07-30 14:51:05.000000000 -0700
|
||||
+++ tcptraceroute.c 2004-03-13 09:41:15.000000000 -0800
|
||||
@@ -391,10 +391,10 @@ void pfatal(char *err)
|
||||
void usage(void)
|
||||
{
|
||||
@ -29,3 +29,12 @@ $OpenBSD: patch-tcptraceroute_c,v 1.3 2004/01/04 23:23:43 espie Exp $
|
||||
iptos(dst_ip), dst_prt, iptos(src_ip), iptos(src_ip));
|
||||
|
||||
if (o_nofilter)
|
||||
@@ -1386,7 +1386,7 @@ int capture(proberecord *record)
|
||||
FD_ZERO(&sfd);
|
||||
FD_SET(pcap_fd, &sfd);
|
||||
|
||||
- ret = o_noselect ? 1 : select(pcap_fd + 1, &sfd, NULL, NULL, &timeleft);
|
||||
+ ret = 1;
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user