suricata
util-checksum.c File Reference
#include "suricata-common.h"
#include "util-checksum.h"
Include dependency graph for util-checksum.c:

Go to the source code of this file.

Functions

int ReCalculateChecksum (Packet *p)
 
int ChecksumAutoModeCheck (uint32_t thread_count, unsigned int iface_count, unsigned int iface_fail)
 Check if the number of invalid checksums indicate checksum offloading in place. More...
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Util functions for checskum.

Definition in file util-checksum.c.

Function Documentation

int ChecksumAutoModeCheck ( uint32_t  thread_count,
unsigned int  iface_count,
unsigned int  iface_fail 
)

Check if the number of invalid checksums indicate checksum offloading in place.

Return values
1yes, offloading in place
0no, no offloading used

Definition at line 70 of file util-checksum.c.

References CHECKSUM_INVALID_RATIO, CHECKSUM_SAMPLE_COUNT, and SCLogInfo.

Referenced by CleanupPcapFileFileVars(), NoNetmapSupportExit(), TmModuleDecodeAFPRegister(), TmModuleDecodePcapRegister(), and TmModuleDecodePfringRegister().

Here is the caller graph for this function:

int ReCalculateChecksum ( Packet p)