net:drivers/net: Miscellaneous conversions to ETH_ALEN
Convert the memset/memcpy uses of 6 to ETH_ALEN where appropriate. Also convert some struct definitions and u8 array declarations of [6] to ETH_ALEN. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0b3d8e087b
commit
d458cdf712
@@ -363,7 +363,7 @@ static struct sk_buff *br_ip4_multicast_alloc_query(struct net_bridge *br,
|
||||
skb_reset_mac_header(skb);
|
||||
eth = eth_hdr(skb);
|
||||
|
||||
memcpy(eth->h_source, br->dev->dev_addr, 6);
|
||||
memcpy(eth->h_source, br->dev->dev_addr, ETH_ALEN);
|
||||
eth->h_dest[0] = 1;
|
||||
eth->h_dest[1] = 0;
|
||||
eth->h_dest[2] = 0x5e;
|
||||
@@ -433,7 +433,7 @@ static struct sk_buff *br_ip6_multicast_alloc_query(struct net_bridge *br,
|
||||
skb_reset_mac_header(skb);
|
||||
eth = eth_hdr(skb);
|
||||
|
||||
memcpy(eth->h_source, br->dev->dev_addr, 6);
|
||||
memcpy(eth->h_source, br->dev->dev_addr, ETH_ALEN);
|
||||
eth->h_proto = htons(ETH_P_IPV6);
|
||||
skb_put(skb, sizeof(*eth));
|
||||
|
||||
|
Reference in New Issue
Block a user