Function ndpi_find_port_based_protocol¶
- Defined in File ndpi_api.h
Function Documentation¶
-
ndpi_protocol
ndpi_find_port_based_protocol
(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t shost, u_int16_t sport, u_int32_t dhost, u_int16_t dport)¶ Search and return the protocol based on matched ports
- ndpi_struct = the detection module
- shost = source address in host byte order
- sport = source port number
- dhost = destination address in host byte order
- dport = destination port number
- Return
- the struct ndpi_protocol that match the port base protocol