suricata
|
#include "decode.h"
Go to the source code of this file.
Macros | |
#define | CHECKSUM_SAMPLE_COUNT 1000ULL |
#define | CHECKSUM_INVALID_RATIO 10 |
Functions | |
int | ReCalculateChecksum (Packet *p) |
int | ChecksumAutoModeCheck (uint64_t thread_count, uint64_t iface_count, uint64_t iface_fail) |
Check if the number of invalid checksums indicate checksum offloading in place. More... | |
Definition in file util-checksum.h.
#define CHECKSUM_INVALID_RATIO 10 |
Definition at line 37 of file util-checksum.h.
#define CHECKSUM_SAMPLE_COUNT 1000ULL |
Definition at line 36 of file util-checksum.h.
int ChecksumAutoModeCheck | ( | uint64_t | thread_count, |
uint64_t | iface_count, | ||
uint64_t | iface_fail | ||
) |
Check if the number of invalid checksums indicate checksum offloading in place.
1 | yes, offloading in place |
0 | no, no offloading used |
Definition at line 69 of file util-checksum.c.
References CHECKSUM_INVALID_RATIO, CHECKSUM_SAMPLE_COUNT, and SCLogInfo.
int ReCalculateChecksum | ( | Packet * | p | ) |
Definition at line 29 of file util-checksum.c.
Referenced by DetectReplaceExecuteInternal().