Function ndpi_match_hostname_protocol

Function Documentation

int ndpi_match_hostname_protocol(struct ndpi_detection_module_struct *ndpi_mod, struct ndpi_flow_struct *flow, u_int16_t master_protocol, char *name, u_int name_len)

Set hostname-based protocol

ndpi_mod = the detection module

flow = the flow to which this communication belongs to

master_protocol = the master protocol for this flow

name = the host name

name_len = length of the host name