From c2fa4acee0f185f3690bc9a23fa93530021c0f4a Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Sun, 28 Feb 2010 13:18:51 +0100 Subject: Set the right source hw address in dde_pcnet32_test. --- dde_pcnet32_test/arping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dde_pcnet32_test') 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], -- cgit v1.2.3