diff options
author | Joe Perches <joe@perches.com> | 2014-02-23 12:05:26 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-25 04:16:44 +0400 |
commit | 04091142826e5823e31cc6418942ac447b3edb0a (patch) | |
tree | dbc0275ae1f732f7985d601b91fbad0dba7ed01b /net/bridge/netfilter/ebt_dnat.c | |
parent | e5a727f6632654098fa4e87d8551a5873e8f658a (diff) | |
download | linux-04091142826e5823e31cc6418942ac447b3edb0a.tar.xz |
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.c | 2 |
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; } |