From: Adrien Mazarguil Date: Fri, 22 May 2015 11:07:31 +0000 (+0200) Subject: app/testpmd: fix MAC address in ARP reply X-Git-Tag: spdx-start~9153 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f161fb6ad5125e8286ea6aaa01e8903dacf21161;p=dpdk.git app/testpmd: fix MAC address in ARP reply In the icmpecho forwarding mode, ARP replies from testpmd contain invalid zero-filled MAC addresses. This is broken since the commit below. Fixes: 31db4d38de72 ("net: change arp header struct declaration") Signed-off-by: Adrien Mazarguil Acked-by: Ivan Boule --- diff --git a/app/test-pmd/icmpecho.c b/app/test-pmd/icmpecho.c index 010c5a9e1e..c5933f4ffd 100644 --- a/app/test-pmd/icmpecho.c +++ b/app/test-pmd/icmpecho.c @@ -400,7 +400,7 @@ reply_to_icmp_echo_rqsts(struct fwd_stream *fs) arp_h->arp_op = rte_cpu_to_be_16(ARP_OP_REPLY); ether_addr_copy(&arp_h->arp_data.arp_tha, ð_addr); ether_addr_copy(&arp_h->arp_data.arp_sha, &arp_h->arp_data.arp_tha); - ether_addr_copy(ð_addr, &arp_h->arp_data.arp_sha); + ether_addr_copy(ð_h->s_addr, &arp_h->arp_data.arp_sha); /* Swap IP addresses in ARP payload */ ip_addr = arp_h->arp_data.arp_sip;