Miscellaneous IPv4 utilities. More...
#include <inttypes.h>
Go to the source code of this file.
Functions | |
| uint32_t | Dwm::Ipv4Utils::Sum (const uint8_t *ptr, uint16_t len) |
Compute the IP sum (part of checksum computation) of the memory at ptr of length len. More... | |
| void | Dwm::Ipv4Utils::AddCarries (uint32_t &sum) |
| Part of IP checksum computation... More... | |
Miscellaneous IPv4 utilities.
| void Dwm::Ipv4Utils::AddCarries | ( | uint32_t & | sum | ) |
Part of IP checksum computation...
add the carries and do the 1's complement.
| uint32_t Dwm::Ipv4Utils::Sum | ( | const uint8_t * | ptr, |
| uint16_t | len | ||
| ) |
Compute the IP sum (part of checksum computation) of the memory at ptr of length len.