Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\etherdevice.h Create Date:2022-07-28 06:05:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:her_addr_equal - Compare two Ethernet addresses*@addr1: Pointer to a six-byte array containing the Ethernet address*@addr2: Pointer other six-byte array containing the Ethernet address* Compare two Ethernet addresses, returns true if equal

Proto:static inline bool ether_addr_equal(const u8 *addr1, const u8 *addr2)

Type:bool

Parameter:

TypeParameterName
const u8 *addr1
const u8 *addr2
323  a = addr1
324  b = addr2
326  Return ( a[0] ^ b[0] | a[1] ^ b[1] | a[2] ^ b[2] ) == 0