summaryrefslogtreecommitdiff
path: root/net/bridge/netfilter/ebt_dnat.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-02-23 00:05:26 -0800
committerDavid S. Miller <davem@davemloft.net>2014-02-24 19:16:44 -0500
commit04091142826e5823e31cc6418942ac447b3edb0a (patch)
treedbc0275ae1f732f7985d601b91fbad0dba7ed01b /net/bridge/netfilter/ebt_dnat.c
parente5a727f6632654098fa4e87d8551a5873e8f658a (diff)
bridge: netfilter: Use ether_addr_copy
Convert the uses of memcpy to ether_addr_copy because for some architectures it is smaller and faster. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/netfilter/ebt_dnat.c')
-rw-r--r--net/bridge/netfilter/ebt_dnat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebt_dnat.c b/net/bridge/netfilter/ebt_dnat.c
index c59f7bfae6e2..4e0b0c359325 100644
--- a/net/bridge/netfilter/ebt_dnat.c
+++ b/net/bridge/netfilter/ebt_dnat.c
@@ -22,7 +22,7 @@ ebt_dnat_tg(struct sk_buff *skb, const struct xt_action_param *par)
if (!skb_make_writable(skb, 0))
return EBT_DROP;
- memcpy(eth_hdr(skb)->h_dest, info->mac, ETH_ALEN);
+ ether_addr_copy(eth_hdr(skb)->h_dest, info->mac);
return info->target;
}