From: Christian Herdtweck Date: Fri, 13 Mar 2015 14:15:17 +0000 (+0100) Subject: added a simple text output (to_string) for DestinationUnreachable ICMP data X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=e7cdd99cb003087da2b0a0e98df38fc76b417ebe;p=pingcheck added a simple text output (to_string) for DestinationUnreachable ICMP data --- diff --git a/src/icmp/icmpdestinationunreachabledata.cpp b/src/icmp/icmpdestinationunreachabledata.cpp index 676774f..c42d692 100644 --- a/src/icmp/icmpdestinationunreachabledata.cpp +++ b/src/icmp/icmpdestinationunreachabledata.cpp @@ -97,5 +97,10 @@ void IcmpDestinationUnreachableData::print( << std::endl; } +std::string IcmpDestinationUnreachableData::to_string() const +{ + return "[DestUnrchbleData]"; +} + // (created using vim -- the world's best text editor) diff --git a/src/icmp/icmpdestinationunreachabledata.h b/src/icmp/icmpdestinationunreachabledata.h index 1197e85..7910ec3 100644 --- a/src/icmp/icmpdestinationunreachabledata.h +++ b/src/icmp/icmpdestinationunreachabledata.h @@ -83,6 +83,8 @@ public: const std::string &remote_address, const uint32_t ttl) const; + std::string to_string() const; + protected: uint16_t get_icmp_request_data(const int data_offset) const;