Function ndpi_load_protocols_file¶
- Defined in File ndpi_api.h
Function Documentation¶
-
int
ndpi_load_protocols_file
(struct ndpi_detection_module_struct *ndpi_mod, const char *path)¶ Read a file and load the protocols
Format: <tcp|udp>:<port>,<tcp|udp>:<port>,…..<proto>
Example: tcp:80,tcp:3128@HTTP udp:139@NETBIOS
- ndpi_mod = the detection module
- path = the path of the file
- Return
- 0 if the file is loaded correctly; -1 generic error -2 memory allocation error