Skip to content
Commit 72c62976 authored by Aska Wu's avatar Aska Wu Committed by Anas Nashif
Browse files

net: ip: Prevent unaligned exception



s_addr is actually an unsigned integer and it's not guaranteed to be
aligned on 4-byte boundary. In net_ipv4_addr_cmp(), accessing s_addr
directly might cause an unaligned exception on some platform
like xtensa. Use UNALIGNED_GET() to prevent unalgined exception.

Signed-off-by: default avatarAska Wu <aska.wu@linaro.org>
parent e4957813
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment