Fixed flow struct static assertion size check (this time with struct padding in mind).

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2024-04-04 12:40:09 +02:00
parent 6917acffda
commit dface63157
+2 -2
View File
@@ -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