From 1577955fca79937e80c11029855978ced7573bbf Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 10 Feb 2025 21:21:51 +0100 Subject: Added ndpi_find_protocol_qoe() API call Updated (C) --- src/include/ndpi_api.h | 12 +++++++++++- src/include/ndpi_includes.h | 2 +- src/include/ndpi_includes_OpenBSD.h | 2 +- src/include/ndpi_main.h | 2 +- src/include/ndpi_patricia_typedefs.h | 2 +- src/include/ndpi_private.h | 2 +- src/include/ndpi_protocol_ids.h | 2 +- src/include/ndpi_typedefs.h | 2 +- src/include/ndpi_unix.h | 2 +- src/include/ndpi_win32.h | 2 +- 10 files changed, 20 insertions(+), 10 deletions(-) (limited to 'src/include') diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 8e7d90336..72dfe82a9 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -1,7 +1,7 @@ /* * ndpi_api.h * - * Copyright (C) 2011-24 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH @@ -587,6 +587,16 @@ extern "C" { void ndpi_set_proto_category(struct ndpi_detection_module_struct *ndpi_mod, u_int16_t protoId, ndpi_protocol_category_t protoCategory); + /** + * Find the QoE category for the specified protocol + * + * @par ndpi_mod = the detection module + * @par protoId = the protocol identifier we're searhing + * + */ + ndpi_protocol_qoe_category_t ndpi_find_protocol_qoe(struct ndpi_detection_module_struct *ndpi_str, + u_int16_t protoId); + /** * Check if subprotocols of the specified master protocol are just * informative (and not real) diff --git a/src/include/ndpi_includes.h b/src/include/ndpi_includes.h index 3e864d300..83c118bac 100644 --- a/src/include/ndpi_includes.h +++ b/src/include/ndpi_includes.h @@ -1,7 +1,7 @@ /* * ndpi_includes.h * - * Copyright (C) 2011-22 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH diff --git a/src/include/ndpi_includes_OpenBSD.h b/src/include/ndpi_includes_OpenBSD.h index 1d3a93ea2..61e3c8225 100644 --- a/src/include/ndpi_includes_OpenBSD.h +++ b/src/include/ndpi_includes_OpenBSD.h @@ -1,7 +1,7 @@ /* * ndpi_includes_OpenBSD.h * - * Copyright (C) 2011-22 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH diff --git a/src/include/ndpi_main.h b/src/include/ndpi_main.h index 5f269e915..641993fcf 100644 --- a/src/include/ndpi_main.h +++ b/src/include/ndpi_main.h @@ -1,7 +1,7 @@ /* * ndpi_main.h * - * Copyright (C) 2011-22 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH diff --git a/src/include/ndpi_patricia_typedefs.h b/src/include/ndpi_patricia_typedefs.h index 41f15e790..84439a02b 100644 --- a/src/include/ndpi_patricia_typedefs.h +++ b/src/include/ndpi_patricia_typedefs.h @@ -1,7 +1,7 @@ /* * ndpi_patricia_typedef.h * - * Copyright (C) 2011-22 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH diff --git a/src/include/ndpi_private.h b/src/include/ndpi_private.h index 85fa162a5..5e0d25608 100644 --- a/src/include/ndpi_private.h +++ b/src/include/ndpi_private.h @@ -1,6 +1,6 @@ /* * - * Copyright (C) 2011-24 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH diff --git a/src/include/ndpi_protocol_ids.h b/src/include/ndpi_protocol_ids.h index 91071d45b..fe354fdce 100644 --- a/src/include/ndpi_protocol_ids.h +++ b/src/include/ndpi_protocol_ids.h @@ -1,7 +1,7 @@ /* * ndpi_protocol_ids.h * - * Copyright (C) 2011-22 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 8adb8acdc..b15f0191d 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1,7 +1,7 @@ /* * ndpi_typedefs.h * - * Copyright (C) 2011-23 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH diff --git a/src/include/ndpi_unix.h b/src/include/ndpi_unix.h index fabaca4bd..3cf0b5924 100644 --- a/src/include/ndpi_unix.h +++ b/src/include/ndpi_unix.h @@ -1,7 +1,7 @@ /* * ndpi_unix.h * - * Copyright (C) 2011-22 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH diff --git a/src/include/ndpi_win32.h b/src/include/ndpi_win32.h index c6b3290f6..4624d5d66 100644 --- a/src/include/ndpi_win32.h +++ b/src/include/ndpi_win32.h @@ -1,7 +1,7 @@ /* * ndpi_win32.h * - * Copyright (C) 2011-22 - ntop.org + * Copyright (C) 2011-25 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH -- cgit v1.2.3