From: Yu Watanabe Date: Thu, 29 Feb 2024 03:46:48 +0000 (+0900) Subject: sd-ndisc: use _packed_ attribute X-Git-Tag: v256-rc1~692^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f169c5644754457e1ad7a2826f7c0895a863bbf2;p=thirdparty%2Fsystemd.git sd-ndisc: use _packed_ attribute --- diff --git a/src/libsystemd-network/ndisc-protocol.h b/src/libsystemd-network/ndisc-protocol.h index 94842524ee7..dcb1b191c7b 100644 --- a/src/libsystemd-network/ndisc-protocol.h +++ b/src/libsystemd-network/ndisc-protocol.h @@ -26,7 +26,7 @@ struct nd_opt_prefix64_info { uint8_t length; uint16_t lifetime_and_plc; uint8_t prefix[12]; -} __attribute__((__packed__)); +} _packed_; int pref64_plc_to_prefix_length(uint16_t plc, uint8_t *ret); int pref64_prefix_length_to_plc(uint8_t prefixlen, uint8_t *ret);