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

Go to the source code of this file.

Macros

#define CHECKSUM_SAMPLE_COUNT   1000
 
#define CHECKSUM_INVALID_RATIO   10
 

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

Definition in file util-checksum.h.

Macro Definition Documentation

#define CHECKSUM_INVALID_RATIO   10

Definition at line 34 of file util-checksum.h.

Referenced by ChecksumAutoModeCheck(), and PcapFileGlobalInit().

#define CHECKSUM_SAMPLE_COUNT   1000

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(), TmModuleDecodeAFPRegister(), TmModuleDecodePcapRegister(), and TmModuleDecodePfringRegister().

Here is the caller graph for this function:

int ReCalculateChecksum ( Packet p)