Function ndpi_network_ptree_match

Function Documentation

u_int16_t ndpi_network_ptree_match(struct ndpi_detection_module_struct *ndpi_struct, struct in_addr *pin)

Returns the nDPI protocol id for IP-based protocol detection

ndpi_struct = the struct created for the protocol detection
pin = IP host address (MUST BE in network byte order):
See man(7) ip for details
Return
the nDPI protocol ID