Function ndpi_match_string

Function Documentation

int ndpi_match_string(void *_automa, char *string_to_match)

Add a string to match to an automata

The automata initialized with ndpi_init_automa();
The (sub)string to search
Return
0 in case of match, or -1 if no match, or -2 if an error occurred.