Function ndpi_is_master_only_protocol

Function Documentation

bool ndpi_is_master_only_protocol(struct ndpi_detection_module_struct *ndpi_str, u_int16_t proto_id)

Checks if the specified protocol identifier can be placed only on the master_protocol field of ndpi_master_app_protocol

Return
true if proto_id cannot be used s app_protocol but only on master_protocol, false is it can be used on both fields
Parameters
  • ndpi_str: nDPI detection module
  • proto_id: nDPI protocol identifier