Fixes nDPI datastructs size check
This commit is contained in:
@@ -1476,11 +1476,11 @@ struct ndpi_flow_struct {
|
|||||||
|
|
||||||
#if !defined(NDPI_CFFI_PREPROCESSING) && defined(__linux__)
|
#if !defined(NDPI_CFFI_PREPROCESSING) && defined(__linux__)
|
||||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
||||||
_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 216,
|
_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 224,
|
||||||
"Size of the struct member protocols increased to more than 216 bytes, "
|
"Size of the struct member protocols increased to more than 224 bytes, "
|
||||||
"please check if this change is necessary.");
|
"please check if this change is necessary.");
|
||||||
_Static_assert(sizeof(struct ndpi_flow_struct) <= 968,
|
_Static_assert(sizeof(struct ndpi_flow_struct) <= 976,
|
||||||
"Size of the flow struct increased to more than 968 bytes, "
|
"Size of the flow struct increased to more than 976 bytes, "
|
||||||
"please check if this change is necessary.");
|
"please check if this change is necessary.");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user