Function ndpi_match_prefix

Function Documentation

int ndpi_match_prefix(const u_int8_t *payload, size_t payload_len, const char *str, size_t str_len)

Checks when the payload starts with the string literal str. When the string is larger than the payload, check fails.

Return
non-zero if check succeeded