Function ndpi_get_num_protocols

Function Documentation

u_int ndpi_get_num_protocols(struct ndpi_detection_module_struct *ndpi_mod)

Get the total number of the defined protocols (internals and custom). It can be called only with finalized context, i.e. after having called ndpi_finalize_initialization()

ndpi_mod = the detection module
Return
the number of protocols