Function ndpi_add_string_value_to_automa
Defined in File ndpi_api.h
Function Documentation
-
int ndpi_add_string_value_to_automa(void *_automa, char *str, u_int32_t num)
Add a string to match to an automata
- The automata initialized with ndpi_init_automa();
- The (sub)string to search (malloc’ed memory)
- The number associated with this string
- Returns:
0 in case of no error, or -2 if the string has been already addeed, or -1 if an error occurred.