Function ndpi_network_port_ptree_match
Defined in File ndpi_api.h
Function Documentation
-
u_int16_t ndpi_network_port_ptree_match(struct ndpi_detection_module_struct *ndpi_struct, struct in_addr *pin, u_int16_t port)
Returns the nDPI protocol id for IP+port-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
- port = The port (MUST BE in network byte order) or
0 if ignored
- Returns:
the nDPI protocol ID