Refactored the checksum calculation and IcmpHeader class
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Fri, 25 Feb 2011 10:56:32 +0000 (11:56 +0100)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Fri, 25 Feb 2011 10:56:32 +0000 (11:56 +0100)
commitd1ed469225d5192e168657585a4dce0a67d2f714
tree8d00b911ab600de82d4ba3fd0c129892239e6d90
parent0a9cc41e8d3505667f175022c479f8aa486f011e
Refactored the checksum calculation and IcmpHeader class
- Included the checksum in the IcmpHeader constructor
- Created a type for ICMP package body, namely Icmpbody
- Transformed the compute_checksum template function into a template class, ChecksumCalculator, and defined an specialization type, namely IcmpChecksumCalculator
src/ping/boostpinger.cpp
src/ping/checksumcalculator.h [new file with mode: 0644]
src/ping/icmpbody.h [new file with mode: 0644]
src/ping/icmpchecksumcalculator.h [new file with mode: 0644]
src/ping/icmpheader.h