aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_api.h19
-rw-r--r--src/include/ndpi_typedefs.h19
2 files changed, 21 insertions, 17 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index e52993243..366bec80c 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -78,6 +78,25 @@ extern "C" {
*/
u_int32_t ndpi_detection_get_sizeof_ndpi_id_struct(void);
+
+ /**
+ * Get the size of the flow tcp struct
+ *
+ * @return the size of the flow tcp struct
+ *
+ */
+ u_int32_t ndpi_detection_get_sizeof_ndpi_flow_tcp_struct(void);
+
+
+ /**
+ * Get the size of the flow udp struct
+ *
+ * @return the size of the flow udp struct
+ *
+ */
+ u_int32_t ndpi_detection_get_sizeof_ndpi_flow_udp_struct(void);
+
+
/**
* nDPI personal allocation and free functions
**/
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index 98b8ccf8e..56fd44d89 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -712,11 +712,7 @@ struct ndpi_flow_tcp_struct {
/* NDPI_PROTOCOL_NEST_LOG_SINK */
u_int8_t nest_log_sink_matches;
-}
-#ifndef WIN32
- __attribute__ ((__packed__))
-#endif
- ;
+};
/* ************************************************** */
@@ -771,11 +767,7 @@ struct ndpi_flow_udp_struct {
/* NDPI_PROTOCOL_WIREGUARD */
u_int8_t wireguard_stage;
u_int32_t wireguard_peer_index[2];
-}
-#ifndef WIN32
- __attribute__ ((__packed__))
-#endif
- ;
+};
/* ************************************************** */
@@ -799,10 +791,6 @@ struct ndpi_packet_struct {
u_int16_t detected_protocol_stack[NDPI_PROTOCOL_SIZE];
u_int8_t detected_subprotocol_stack[NDPI_PROTOCOL_SIZE];
-
-#ifndef WIN32
- __attribute__ ((__packed__))
-#endif
u_int16_t protocol_stack_info;
struct ndpi_int_one_line_struct line[NDPI_MAX_PARSE_LINES_PER_PACKET];
@@ -1145,9 +1133,6 @@ typedef enum {
struct ndpi_flow_struct {
u_int16_t detected_protocol_stack[NDPI_PROTOCOL_SIZE];
-#ifndef WIN32
- __attribute__ ((__packed__))
-#endif
u_int16_t protocol_stack_info;
/* init parameter, internal used to set up timestamp,... */