net: ipv4: Remove in_addr from packed net_ipv4_hdr struct

Replace unpacked in_addr structures with raw buffers in net_ipv4_hdr
struct, to prevent compiler warnings about unaligned access.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2021-10-04 14:40:22 +02:00 committed by Anas Nashif
commit 064200b420
18 changed files with 94 additions and 88 deletions

View file

@ -486,8 +486,8 @@ struct net_ipv4_hdr {
uint8_t ttl;
uint8_t proto;
uint16_t chksum;
struct in_addr src;
struct in_addr dst;
uint8_t src[NET_IPV4_ADDR_SIZE];
uint8_t dst[NET_IPV4_ADDR_SIZE];
} __packed;
struct net_icmp_hdr {