Function ndpi_get_proto_by_name

Function Documentation

u_int16_t ndpi_get_proto_by_name(struct ndpi_detection_module_struct *ndpi_mod, const char *name)

Return the name of the protocol given its ID.

ndpi_mod = the detection module
name = the protocol name. You can specify TLS or YouYube but not TLS.YouTube (se ndpi_get_protocol_by_name in this case)
Return
the ID of the protocol