summaryrefslogtreecommitdiff
path: root/dde_pcnet32_test
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-02-28 13:18:51 +0100
committerZheng Da <zhengda1936@gmail.com>2010-02-28 13:18:51 +0100
commitc2fa4acee0f185f3690bc9a23fa93530021c0f4a (patch)
treef3bf1dc57bb7b98275c0fd0357e80ad6a26ec74a /dde_pcnet32_test
parent7634fec1207d53f452a257c9cb0fc4986a211709 (diff)
Set the right source hw address in dde_pcnet32_test.
Diffstat (limited to 'dde_pcnet32_test')
-rw-r--r--dde_pcnet32_test/arping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dde_pcnet32_test/arping.c b/dde_pcnet32_test/arping.c
index 62a2767b..ac805aa4 100644
--- a/dde_pcnet32_test/arping.c
+++ b/dde_pcnet32_test/arping.c
@@ -122,7 +122,7 @@ static int handle_icmp_packet(struct sk_buff *skb)
memcpy(snd_skb->data, skb->data, skb->len);
e = (struct ethernet_hdr *)snd_skb->data;
- memcpy(e->src, eth->dest, ETH_ALEN);
+ memcpy(e->src, skb->dev->dev_addr, ETH_ALEN);
memcpy(e->dest, eth->src, ETH_ALEN);
VERBOSE_LOG("dest mac = %02x:%02x:%02x:%02x:%02x:%02x\n",
e->dest[0], e->dest[1], e->dest[2],