[smokeping-users] More on fping
PAUL WILLIAMSON
pwilliamson at mandtbank.com
Thu Oct 9 16:52:59 MEST 2003
I'm stiull having problems with making fping, but after
a Mr. Pibb (tm), I'm a little more awake today...
I have tracked the problem down to this section of code in fping.c:
int recvfrom_wto( int s, char *buf, int len, struct sockaddr *saddr, int timo )
#endif /* _NO_PROTO */
{
int nfound, slen, n;
struct timeval to;
fd_set readset, writeset;
to.tv_sec = timo / 100000;
to.tv_usec = ( timo - ( to.tv_sec * 100000 ) ) * 10;
FD_ZERO( &readset );
FD_ZERO( &writeset );
FD_SET( s, &readset );
nfound = select( s + 1, &readset, &writeset, NULL, &to );
if( nfound < 0 )
errno_crash_and_burn( "select" );
if( nfound == 0 )
return -1; /* timeout */
slen = sizeof( struct sockaddr );
n = recvfrom( s, buf, len, 0, saddr, &slen );
if( n < 0 )
errno_crash_and_burn( "recvfrom" );
return n;
} /* recvfrom_wto() */
The specific part that it is dying on is:
n = recvfrom( s, buf, len, 0, saddr, &slen );
I can't find any definition for recvfrom in any of the source. I tried to change it to recvfrom_wto and (surprise), it didn't work either.
If anyone can offer some help, that would be great.
Thanks!
Paul
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the smokeping-users
mailing list