My understanding is that the one complement of each 16-bit word is
summed, and then the result of that is bitwise complemented. So for each word we would do something like this. for each word{ sum += ~word; } then you would take the bitwise complement of that total. sum = ~sum;
The RFC for IP contains C code that you can literally copy and paste for this task.
-- Morgon -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html