Driver: Assert that "ip6_addr_t" can't contain padding

This commit is contained in:
Nodir Temirkhodjaev 2023-08-26 16:25:48 +05:00
parent 60b5734a48
commit 56c0ebaf42

View File

@ -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");