HomeFreeBSD

LinuxKPI: add ether_addr_equal_unaligned()

Description

LinuxKPI: add ether_addr_equal_unaligned()

Replace the implementation for ether_addr_equal() with
ether_addr_equal_unaligned() and add a define for ether_addr_equal()
pointing to the now ether_addr_equal_unaligned() implementation.
This way ether_addr_equal_unaligned() cannot be broken by accident [1].

Suggested by: emaste [1]
Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30425

(cherry picked from commit 834227ba6e80dc0899d2372ae8986241f5658c4e)

Details

Provenance
bzAuthored on May 24 2021, 6:09 PM
Reviewer
hselasky
Differential Revision
D30425: LinuxKPI: add ether_addr_equal_unaligned()
Parents
rG15350a10577e: LinuxKPI: net/if_inet6.h add struct inet6_dev { }
Branches
Unknown
Tags
Unknown