From dface63157f53a0a22b7e98f6a9bb0aaba30972e Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 4 Apr 2024 12:40:09 +0200 Subject: Fixed flow struct static assertion size check (this time with struct padding in mind). Signed-off-by: Toni Uhlig --- src/include/ndpi_typedefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index bb340e4bc..b8aba218c 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1507,8 +1507,8 @@ struct ndpi_flow_struct { _Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 256, "Size of the struct member protocols increased to more than 256 bytes, " "please check if this change is necessary."); -_Static_assert(sizeof(struct ndpi_flow_struct) <= 1014, - "Size of the flow struct increased to more than 1014 bytes, " +_Static_assert(sizeof(struct ndpi_flow_struct) <= 1016, + "Size of the flow struct increased to more than 1016 bytes, " "please check if this change is necessary."); #endif #endif -- cgit v1.2.3