aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-02-26 08:05:45 +0100
committerGitHub <noreply@github.com>2020-02-26 08:05:45 +0100
commita55c410202169d54857c9a736fe365e4ad5657a7 (patch)
treec2c81c9a64271500bb72c6443c5cc4bd8cf25305 /src/lib/ndpi_main.c
parentf07a3294471de26c83ed9915ad71f8e57e19a854 (diff)
parentdcb6fde0c98ca0965b1362dcd94cc5c90b8e5c15 (diff)
Merge pull request #848 from aouinizied/dev
nDPI 3.2 support in python cffi bindings
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c8
1 files changed, 8 insertions, 0 deletions
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);
}