diff options
author | Toni <matzeton@googlemail.com> | 2022-03-02 13:12:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 13:12:01 +0100 |
commit | e8559a4127a75993655a75e0595c76378873ae51 (patch) | |
tree | 0a6b10f46b91a391ddc92bdc3ddffb1c0438fcc2 /src/include | |
parent | 6c4df21238e2002bfea04ac95d39afb36cbc3d37 (diff) |
Add ICMP checksum check and set risk if mismatch detected. (#1464)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ndpi_main.h b/src/include/ndpi_main.h index 66567d871..790fa4c33 100644 --- a/src/include/ndpi_main.h +++ b/src/include/ndpi_main.h @@ -155,6 +155,7 @@ extern "C" { int ndpi_is_printable_string(char * const str, size_t len); #define NDPI_ENTROPY_ENCRYPTED_OR_RANDOM(entropy) (entropy > 7.0f) float ndpi_entropy(u_int8_t const * const buf, size_t len); + u_int16_t ndpi_calculate_icmp4_checksum(u_int8_t const * const buf, size_t len); void load_common_alpns(struct ndpi_detection_module_struct *ndpi_str); u_int8_t is_a_common_alpn(struct ndpi_detection_module_struct *ndpi_str, const char *alpn_to_check, u_int alpn_to_check_len); |