From 56c0ebaf422d353693986035fd647e4d0363c682 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 26 Aug 2023 16:25:48 +0500 Subject: [PATCH] Driver: Assert that "ip6_addr_t" can't contain padding --- src/driver/common/fortconf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/driver/common/fortconf.c b/src/driver/common/fortconf.c index 874dded0..32906fe2 100644 --- a/src/driver/common/fortconf.c +++ b/src/driver/common/fortconf.c @@ -7,6 +7,8 @@ #include "fortdef.h" #include "fort_wildmatch.h" +static_assert(sizeof(ip6_addr_t) == 16, "ip6_addr_t size mismatch"); + static_assert(sizeof(FORT_CONF_FLAGS) == sizeof(UINT32), "FORT_CONF_FLAGS size mismatch"); static_assert(sizeof(FORT_TRAF) == sizeof(UINT64), "FORT_TRAF size mismatch"); static_assert(sizeof(FORT_TIME) == sizeof(UINT16), "FORT_TIME size mismatch");