GlobalLogger.debug()
<< DestinationEndpoint.address().to_string()
- << ": cancel timer" << endl;
+ << ": unregister" << endl;
PacketDistributor->unregister_pinger( icmp_item );
}
}
// check which pinger wants this packet
- //bool packet_matches = false;
- int n_matches = 0;
+ bool packet_matches = false;
BOOST_FOREACH( IcmpPingerItem pinger, PingerList )
{
- /*
packet_matches |= pinger->handle_receive_icmp_packet(icmp_packet,
bytes_transferred);
if (packet_matches)
break;
- */
- if (pinger->handle_receive_icmp_packet(icmp_packet,
- bytes_transferred) )
- ++n_matches;
}
- BOOST_ASSERT(n_matches < 2);
- //if (!packet_matches)
- if (n_matches == 0)
+ if (!packet_matches)
GlobalLogger.warning() << "Packet did not match any pinger"
<< std::endl;
}