suricata
util-fix_checksum.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint16_t FixChecksum (uint16_t sum, uint16_t old, uint16_t new)
 Fix-up an IP checksum. More...
 

Function Documentation

◆ FixChecksum()

uint16_t FixChecksum ( uint16_t  sum,
uint16_t  old,
uint16_t  new 
)

Fix-up an IP checksum.

Parameters
sumThe current checksum.
oldValue of old header parameter.
newValue of new header parameter.
Return values
Newchecksum.

Definition at line 51 of file util-fix_checksum.c.