Skip to content

Commit

Permalink
Added STUN custom support
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Dec 2, 2024
1 parent 2a8c7bf commit ea1b8dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/ndpi_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,11 @@ int ndpi_dpi2json(struct ndpi_detection_module_struct *ndpi_struct,

ndpi_serialize_string_string(serializer, "multimedia_flow_types",
ndpi_multimedia_flowtype2str(content, sizeof(content), flow->flow_multimedia_types));

#ifdef CUSTOM_NDPI_PROTOCOLS
#include "../../../nDPI-custom/ndpi_utils_dpi2json_stun.c"
#endif

ndpi_serialize_end_of_block(serializer);
break;

Expand All @@ -1653,7 +1658,7 @@ int ndpi_dpi2json(struct ndpi_detection_module_struct *ndpi_struct,
break;

#ifdef CUSTOM_NDPI_PROTOCOLS
#include "../../../nDPI-custom/ndpi_utils_dpi2json.c"
#include "../../../nDPI-custom/ndpi_utils_dpi2json_protos.c"
#endif
} /* switch */

Expand Down

0 comments on commit ea1b8dc

Please sign in to comment.