Skip to content
Commit edf5319c authored by Robert Lubos's avatar Robert Lubos Committed by Daniel DeGrasse
Browse files

net: ipv6: nbr: Avoid casting unaligned address to struct in6_addr



IPv6 Neighbor Discovery interfaces modules like neighbor or routing
tables - converting them to raw variants seems futile. Therefore, for
IPv6 ND case, copy the raw IP address from the packet into the in6_addr
structure, and then pass it to respective functions. Performance
overhead should not be a big problem in such case as those actions are
only performed if a respective ND packet is received.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent f5455e66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment