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
MFC after: 2 weeks
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30425

Details

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