diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-08-02 20:21:53 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-08-02 21:00:39 +0200 |
commit | ebb439d959c9966345e0acc10ea6fa63635b5995 (patch) | |
tree | de4366f6dc8e2d1caf880f3d73f38c7b36d3fae7 /nDPId.c | |
parent | 79834df457ebc36158c8197a26c11b672993b3ea (diff) |
Tiny improvments.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPId.c')
-rw-r--r-- | nDPId.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -5349,6 +5349,14 @@ int main(int argc, char ** argv) NDPI_API_VERSION, ndpi_get_api_version()); } + if (sizeof(struct ndpi_flow_struct) != ndpi_detection_get_sizeof_ndpi_flow_struct()) + { + logger_early(1, + "FATAL: nDPI flow struct size inconsistent; expected %zu bytes, got %u bytes.", + sizeof(struct ndpi_flow_struct), + ndpi_detection_get_sizeof_ndpi_flow_struct()); + return 1; + } #ifdef ENABLE_MEMORY_PROFILING logger_early(0, "size/workflow....: %zu bytes", sizeof(struct nDPId_workflow)); |