mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
net/* misc endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
704eae1f32
commit
582ee43dad
5 changed files with 10 additions and 12 deletions
|
@ -112,9 +112,9 @@ static int br_handle_local_finish(struct sk_buff *skb)
|
|||
*/
|
||||
static inline int is_link_local(const unsigned char *dest)
|
||||
{
|
||||
const u16 *a = (const u16 *) dest;
|
||||
static const u16 *const b = (const u16 *const ) br_group_address;
|
||||
static const u16 m = __constant_cpu_to_be16(0xfff0);
|
||||
__be16 *a = (__be16 *)dest;
|
||||
static const __be16 *b = (const __be16 *)br_group_address;
|
||||
static const __be16 m = __constant_cpu_to_be16(0xfff0);
|
||||
|
||||
return ((a[0] ^ b[0]) | (a[1] ^ b[1]) | ((a[2] ^ b[2]) & m)) == 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue