bridge: Use ether_addr_copy and ETH_ALEN
Convert the more obvious uses of memcpy to ether_addr_copy. There are still uses of memcpy that could be converted but these addresses are __aligned(2). Convert a couple uses of 6 in gr_private.h to ETH_ALEN. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e8b39015b5
commit
e5a727f663
@@ -46,12 +46,12 @@ typedef __u16 port_id;
|
||||
struct bridge_id
|
||||
{
|
||||
unsigned char prio[2];
|
||||
unsigned char addr[6];
|
||||
unsigned char addr[ETH_ALEN];
|
||||
};
|
||||
|
||||
struct mac_addr
|
||||
{
|
||||
unsigned char addr[6];
|
||||
unsigned char addr[ETH_ALEN];
|
||||
};
|
||||
|
||||
struct br_ip
|
||||
|
Reference in New Issue
Block a user