'\" t .\" Title: ether_addr_equal_64bits .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "ETHER_ADDR_EQUAL_64B" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ether_addr_equal_64bits \- Compare two Ethernet addresses .SH "SYNOPSIS" .HP \w'bool\ ether_addr_equal_64bits('u .BI "bool ether_addr_equal_64bits(const\ u8\ " "addr1" ", const\ u8\ " "addr2" ");" .SH "ARGUMENTS" .PP \fIconst u8 addr1\fR .RS 4 Pointer to an array of 8 bytes .RE .PP \fIconst u8 addr2\fR .RS 4 Pointer to an other array of 8 bytes .RE .SH "DESCRIPTION" .PP Compare two Ethernet addresses, returns true if equal, false otherwise\&. .PP The function doesn\*(Aqt need any conditional branches and possibly uses word memory accesses on CPU allowing cheap unaligned memory reads\&. arrays = { byte1, byte2, byte3, byte4, byte5, byte6, pad1, pad2 } .PP Please note that alignment of addr1 & addr2 are only guaranteed to be 16 bits\&. .SH "COPYRIGHT" .br