--- hobbit/bbnet/hobbitping.c 2008/01/03 09:42:11 1.14 +++ hobbit/bbnet/hobbitping.c 2008/05/23 08:47:33 @@ -211,7 +211,10 @@ (struct sockaddr *) &hosts[idx]->addr, sizeof(struct sockaddr_in)); if (sentbytes == -1) { - if (errno != EWOULDBLOCK) errprintf("Failed to send ICMP packet: %s\n", strerror(errno)); + if (errno != EWOULDBLOCK) { + errprintf("Failed to send ICMP packet: %s\n", strerror(errno)); + idx++; /* To avoid looping indefinitely trying to send to this host */ + } } else if (sentbytes == PING_PACKET_SIZE) { /* We managed to send a ping! */