Function ndpi_match_string_value
Defined in File ndpi_api.h
Function Documentation
-
int ndpi_match_string_value(void *_automa, char *string_to_match, u_int match_len, u_int32_t *num)
Match a string against an automaton and retrieve its associated numeric value. This function is similar to ndpi_match_string_subprotocol() but is used for matching raw IDs that were added via ndpi_add_string_value_to_automa().
- Parameters:
_automa – Automaton created with ndpi_init_automa()
string_to_match – String to search for
match_len – Length of the string to match
num – Pointer to store the associated numeric value (output parameter)
- Returns:
1 if a match was found, 0 otherwise