libDwm-0.6.0
DwmIpv4Utils.hh File Reference

Miscellaneous IPv4 utilities. More...

#include <inttypes.h>
Include dependency graph for DwmIpv4Utils.hh:

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...
 

Detailed Description

Miscellaneous IPv4 utilities.

Function Documentation

◆ AddCarries()

void Dwm::Ipv4Utils::AddCarries ( uint32_t &  sum)

Part of IP checksum computation...

add the carries and do the 1's complement.

◆ Sum()

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.