Function ndpi_load_protocols_dir

Function Documentation

int ndpi_load_protocols_dir(struct ndpi_detection_module_struct *ndpi_str, char *path)

Load files (whose name is <protocolid>_<label>.<extension>) stored in a directory and binds each IP/network to the specified protocol. This function is used to bind IP addresses to protocols

ndpi_mod = the detection module

path = the path of the file

Returns:

0 if the file is loaded correctly; -1 else