git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vserver 1.9.3
[linux-2.6.git]
/
net
/
bridge
/
netfilter
/
ebt_snat.c
diff --git
a/net/bridge/netfilter/ebt_snat.c
b/net/bridge/netfilter/ebt_snat.c
index
ae0f053
..
1529bdc
100644
(file)
--- a/
net/bridge/netfilter/ebt_snat.c
+++ b/
net/bridge/netfilter/ebt_snat.c
@@
-30,8
+30,7
@@
static int ebt_target_snat(struct sk_buff **pskb, unsigned int hooknr,
kfree_skb(*pskb);
*pskb = nskb;
}
- memcpy(((**pskb).mac.ethernet)->h_source, info->mac,
- ETH_ALEN * sizeof(unsigned char));
+ memcpy(eth_hdr(*pskb)->h_source, info->mac, ETH_ALEN);
return info->target;
}