compare_ether_addr_64bits(9)

compare_ether_addr_64bits9

Compare two ethernet addresses

Usage

unsigned compare_ether_addr_64bits(const u8 addr1[6+2], const u8 addr2[6+2]);

Arguments

addr1[6+2]

Pointer to an array of 8 bytes

addr2[6+2]

Pointer to an other array of 8 bytes

Overview

Compare two ethernet addresses, returns 0 if equal. Same result than “memcmp(addr1, addr2, ETH_ALEN)” but without conditional branches, and possibly long word memory accesses on CPU allowing cheap unaligned memory reads. arrays = { byte1, byte2, byte3, byte4, byte6, byte7, pad1, pad2}

Please note that alignment of addr1 & addr2 is only guaranted to be 16 bits.

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.