diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-02-28 13:18:51 +0100 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-02-28 13:18:51 +0100 |
commit | c2fa4acee0f185f3690bc9a23fa93530021c0f4a (patch) | |
tree | f3bf1dc57bb7b98275c0fd0357e80ad6a26ec74a /dde_pcnet32_test | |
parent | 7634fec1207d53f452a257c9cb0fc4986a211709 (diff) |
Set the right source hw address in dde_pcnet32_test.
Diffstat (limited to 'dde_pcnet32_test')
-rw-r--r-- | dde_pcnet32_test/arping.c | 2 |
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], |