|
@@ -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, ETH_ALEN);
|
|
|
+ ether_addr_copy(eth->h_source, br->dev->dev_addr);
|
|
|
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, ETH_ALEN);
|
|
|
+ ether_addr_copy(eth->h_source, br->dev->dev_addr);
|
|
|
eth->h_proto = htons(ETH_P_IPV6);
|
|
|
skb_put(skb, sizeof(*eth));
|
|
|
|