IcmpPacket();
virtual ~IcmpPacket();
- virtual bool is_echo_reply(
+ virtual bool match_echo_reply(
const uint16_t identifier,
const uint16_t sequence_number,
const boost::asio::ip::address &source_address
) const = 0;
- virtual bool is_destination_unreachable(
+ virtual bool match_destination_unreachable(
const uint16_t identifier,
const uint16_t sequence_number,
const boost::asio::ip::address &source_address
// expected sequence number, and destination host address (receive just
// the ICMP packets from the host we had ping).
- if ( icmp_packet.is_echo_reply(
+ if ( icmp_packet.match_echo_reply(
Identifier, SequenceNumber,
DestinationEndpoint.address() ) )
{
IcmpPacketReceiveTimer.cancel();
}
- else if ( icmp_packet.is_destination_unreachable(
+ else if ( icmp_packet.match_destination_unreachable(
Identifier, SequenceNumber,
DestinationEndpoint.address() ) )
{
*
* @return @c true if this packet is a echo reply, or @c false otherwise.
*/
-bool Icmpv4Packet::is_echo_reply(
+bool Icmpv4Packet::match_echo_reply(
const uint16_t identifier,
const uint16_t sequence_number,
const address &source_address
* @return @c true if this packet is a destination unreachable, or @c false
* otherwise.
*/
-bool Icmpv4Packet::is_destination_unreachable(
+bool Icmpv4Packet::match_destination_unreachable(
const uint16_t identifier,
const uint16_t sequence_number,
const address &source_address
Icmpv4Header get_icmp_header() const;
IcmpData get_icmp_data() const;
- bool is_echo_reply(
+ bool match_echo_reply(
const uint16_t identifier,
const uint16_t sequence_number,
const boost::asio::ip::address &source_address
) const;
- bool is_destination_unreachable(
+ bool match_destination_unreachable(
const uint16_t identifier,
const uint16_t sequence_number,
const boost::asio::ip::address &source_address
*
* @return @c true if this packet is a echo reply, or @c false otherwise.
*/
-bool Icmpv6Packet::is_echo_reply(
+bool Icmpv6Packet::match_echo_reply(
const uint16_t identifier,
const uint16_t sequence_number,
const address &source_address
* @return @c true if this packet is a destination unreachable, or @c false
* otherwise.
*/
-bool Icmpv6Packet::is_destination_unreachable(
+bool Icmpv6Packet::match_destination_unreachable(
const uint16_t identifier,
const uint16_t sequence_number,
const address &source_address
Icmpv6Header get_icmp_header() const;
IcmpData get_icmp_data() const;
- bool is_echo_reply(
+ bool match_echo_reply(
const uint16_t identifier,
const uint16_t sequence_number,
const boost::asio::ip::address &source_address
) const;
- bool is_destination_unreachable(
+ bool match_destination_unreachable(
const uint16_t identifier,
const uint16_t sequence_number,
const boost::asio::ip::address &source_address