From 5a0f60908671932b6a316f3894cbd6218e77e68c Mon Sep 17 00:00:00 2001 From: Zied Aouini Date: Fri, 21 Feb 2020 15:49:46 +0100 Subject: Add ndpi_flow_tcp_struct and ndpi_flow_udp_struct api calls. --- src/lib/ndpi_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index af6811b25..21491c5e7 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -165,6 +165,14 @@ u_int32_t ndpi_detection_get_sizeof_ndpi_id_struct(void) { return(sizeof(struct /* *********************************************************************************** */ +u_int32_t ndpi_detection_get_sizeof_ndpi_flow_tcp_struct(void) { return(sizeof(struct ndpi_flow_tcp_struct)); } + +/* *********************************************************************************** */ + +u_int32_t ndpi_detection_get_sizeof_ndpi_flow_udp_struct(void) { return(sizeof(struct ndpi_flow_udp_struct)); } + +/* *********************************************************************************** */ + char * ndpi_get_proto_by_id(struct ndpi_detection_module_struct *ndpi_str, u_int id) { return((id >= ndpi_str->ndpi_num_supported_protocols) ? NULL : ndpi_str->proto_defaults[id].protoName); } -- cgit v1.2.3