/[monit]/monit/net.c
ViewVC logotype

Diff of /monit/net.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.41 by hauk, Tue Sep 30 16:03:13 2003 UTC revision 1.42 by hauk, Sat Oct 18 16:46:34 2003 UTC
# Line 632  int icmp_echo(const char *hostname, int Line 632  int icmp_echo(const char *hostname, int
632    sout.sin_port= 0;    sout.sin_port= 0;
633    memcpy(&sout.sin_addr, hp->h_addr, hp->h_length);    memcpy(&sout.sin_addr, hp->h_addr, hp->h_length);
634    
635    sendto(s, (char *)icmphdrout, sizeof(struct icmphdr), 0,    do {
636           (struct sockaddr *)&sout, sizeof(struct sockaddr));      n= sendto(s, (char *)icmphdrout, sizeof(struct icmphdr), 0,
637                  (struct sockaddr *)&sout, sizeof(struct sockaddr));
638      } while(n == -1 && errno == EINTR);
639      
640    tv.tv_sec= timeout;    tv.tv_sec= timeout;
641    tv.tv_usec= 0;    tv.tv_usec= 0;
642    

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26