suricata
util-fix_checksum.c File Reference
#include <stdint.h>
#include "util-fix_checksum.h"
Include dependency graph for util-fix_checksum.c:

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.