dhcp_opt_header structure is already packed so we can get rid of OVS_PACKED attribute.
Signed-off-by: Lorenzo Bianconi <[email protected]> --- lib/ovn-l7.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ovn-l7.h b/lib/ovn-l7.h index 8f21df32f..d9b103119 100644 --- a/lib/ovn-l7.h +++ b/lib/ovn-l7.h @@ -231,11 +231,12 @@ dhcp_opts_clear(struct hmap *dhcp_opts) gen_opts_clear(dhcp_opts); } -OVS_PACKED( +#define DHCP_OPT_HEADER_LEN 2 struct dhcp_opt_header { uint8_t code; uint8_t len; -}); +}; +BUILD_ASSERT_DECL(DHCP_OPT_HEADER_LEN == sizeof(struct dhcp_opt_header)); #define DHCP_OPT_PAYLOAD(hdr) \ (void *)((char *)hdr + sizeof(struct dhcp_opt_header)) -- 2.40.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
