aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-04-04 12:40:09 +0200
committerToni Uhlig <matzeton@googlemail.com>2024-04-04 12:40:09 +0200
commitdface63157f53a0a22b7e98f6a9bb0aaba30972e (patch)
tree6f66dfdc13408cfa958d4c1feee8bf77454e1309 /src
parent6917acffda2ac2b3d5ded8b821b6d4a564e40e09 (diff)
Fixed flow struct static assertion size check (this time with struct padding in mind).
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r--src/include/ndpi_typedefs.h4
1 files changed, 2 insertions, 2 deletions
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