From: Guilherme Maciel Ferreira Date: Sun, 10 Jul 2011 03:28:16 +0000 (-0300) Subject: Note to myself: rework the checksum to use it also in the TCP stuff X-Git-Tag: v1.1^2~61 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=d5c1228a1fd6c3bfe8494e77f5c91c76b7a6b3e0;p=pingcheck Note to myself: rework the checksum to use it also in the TCP stuff --- diff --git a/src/icmp/checksumcalculator.h b/src/icmp/checksumcalculator.h index 1b31f08..c2699e2 100644 --- a/src/icmp/checksumcalculator.h +++ b/src/icmp/checksumcalculator.h @@ -25,6 +25,14 @@ public: const Iterator &body_end ); + // TODO common checksum + // The must have a method which returns an aray of works + // this way the checksum calculator can be used with any ICMP, TCP, UDP... + // uint16_t compute( const Message &message ) const + // { + // message.get_word_array() -> uint16_t *word_array + // + // uint16_t compute( uint8_t type, uint8_t code,