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:
parent
bbdeef4ac4
commit
064200b420
18 changed files with 94 additions and 88 deletions
|
@ -189,7 +189,7 @@ enum net_verdict net_ipv4_igmp_input(struct net_pkt *pkt,
|
|||
/* TODO: receive from arbitrary group address instead of
|
||||
* all_systems
|
||||
*/
|
||||
if (!net_ipv4_addr_cmp(&ip_hdr->dst, &all_systems)) {
|
||||
if (!net_ipv4_addr_cmp_raw(ip_hdr->dst, (uint8_t *)&all_systems)) {
|
||||
NET_DBG("DROP: Invalid dst address");
|
||||
return NET_DROP;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue