From: Guilherme Maciel Ferreira Date: Thu, 18 Aug 2011 02:21:57 +0000 (-0300) Subject: Renamed IcmpChecksumCalculator to IcmpChecksum X-Git-Tag: v1.1^2~13 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=1a6f56e0e6ee44d3718f7116383cb83d6b4993ed;p=pingcheck Renamed IcmpChecksumCalculator to IcmpChecksum --- diff --git a/src/icmp/icmpchecksumcalculator.h b/src/icmp/icmpchecksum.h similarity index 72% rename from src/icmp/icmpchecksumcalculator.h rename to src/icmp/icmpchecksum.h index d173619..a14ebf1 100644 --- a/src/icmp/icmpchecksumcalculator.h +++ b/src/icmp/icmpchecksum.h @@ -4,16 +4,16 @@ // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#ifndef ICMPCHECKSUMCALCULATOR_H -#define ICMPCHECKSUMCALCULATOR_H +#ifndef ICMP_CHECKSUM_H +#define ICMP_CHECKSUM_H #include "host/checksum.hpp" #include "icmp/icmpdata.h" //----------------------------------------------------------------------------- -// IcmpChecksumCalculator +// IcmpChecksum //----------------------------------------------------------------------------- -typedef Checksum IcmpChecksumCalculator; +typedef Checksum IcmpChecksum; -#endif /* ICMPCHECKSUMCALCULATOR_H */ +#endif // ICMP_CHECKSUM_H diff --git a/src/icmp/icmppinger.cpp b/src/icmp/icmppinger.cpp index 9297601..ac33b70 100644 --- a/src/icmp/icmppinger.cpp +++ b/src/icmp/icmppinger.cpp @@ -21,7 +21,7 @@ #include -#include "icmp/icmpchecksumcalculator.h" +#include "icmp/icmpchecksum.h" #include "icmp/icmpdata.h" #include "icmp/icmpheader.h" #include "icmp/icmppacket.h" @@ -132,7 +132,7 @@ IcmpPacket IcmpPinger::create_echo_request( IcmpType type = IcmpType_EchoRequest; uint8_t code = 0; - IcmpChecksumCalculator calculator( icmp_data.begin(), icmp_data.end() ); + IcmpChecksum calculator( icmp_data.begin(), icmp_data.end() ); uint16_t checksum = calculator.compute( type, code, Identifier, sequence_number );