From: Guilherme Maciel Ferreira Date: Fri, 8 Apr 2011 15:44:49 +0000 (+0200) Subject: Increment the replies count when receiving a destination unreachable, avoiding the... X-Git-Tag: v1.0~87 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=316ca633419a93b46fea01f07b8b8389c2aa516b;p=pingcheck Increment the replies count when receiving a destination unreachable, avoiding the request timeout message --- diff --git a/src/ping/boostpinger.cpp b/src/ping/boostpinger.cpp index a53416a..3612744 100644 --- a/src/ping/boostpinger.cpp +++ b/src/ping/boostpinger.cpp @@ -247,6 +247,8 @@ void BoostPinger::handle_receive_icmp_packet( const size_t &bytes_transferred ) (void) IcmpPacketReceiveTimer.cancel(); } + ++RepliesCount; + print_destination_unreachable( icmp_packet ); set_ping_status( PingStatus_FailureDestinationUnreachable );