'\" t .\" Title: is_etherdev_addr .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "IS_ETHERDEV_ADDR" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" is_etherdev_addr \- Tell if given Ethernet address belongs to the device\&. .SH "SYNOPSIS" .HP \w'bool\ is_etherdev_addr('u .BI "bool is_etherdev_addr(const\ struct\ net_device\ *\ " "dev" ", const\ u8\ " "addr[6\ +\ 2]" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Pointer to a device structure .RE .PP \fIaddr[6 + 2]\fR .RS 4 Pointer to a six\-byte array containing the Ethernet address .RE .SH "DESCRIPTION" .PP Compare passed address with all addresses of the device\&. Return true if the address if one of the device addresses\&. .PP Note that this function calls \fBether_addr_equal_64bits\fR so take care of the right padding\&. .SH "COPYRIGHT" .br