Note to myself: rework the checksum to use it also in the TCP stuff
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sun, 10 Jul 2011 03:28:16 +0000 (00:28 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sun, 10 Jul 2011 03:28:16 +0000 (00:28 -0300)
src/icmp/checksumcalculator.h

index 1b31f08..c2699e2 100644 (file)
@@ -25,6 +25,14 @@ public:
             const Iterator &body_end
     );
 
+    // TODO common checksum
+    // The <typename Message> 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,