Function ndpi_load_category_file
Defined in File ndpi_api.h
Function Documentation
-
int ndpi_load_category_file(struct ndpi_detection_module_struct *ndpi_str, char *path, ndpi_protocol_category_t category_id)
Loads a file (separated by <cr>) of domain names associated with the specified category
- ndpi_mod = the detection module
- path = the path of the file
- category_id = Id of the category to which domains will be associated
- Returns:
0 if the file is loaded correctly; -1 else