From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 74A0B5697 for ; Fri, 22 May 2015 13:07:43 +0200 (CEST) Received: by wghq2 with SMTP id q2so14445957wgh.1 for ; Fri, 22 May 2015 04:07:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=WvUe1vJKJtbu4xlcTfmBbps6yAvO3ARstKQtbFPTw4o=; b=Kmth8gynUN1RUKeOV1A5kCS/VXzerOGuC/ZKlbtveWvDpSSoTHjuyXMlEb+W89rXrX oUbPvmCeBDAxa98YcyxOn7zNk7eqqIlkBu4ozqGqiKUQD4z9Qj5vcrjy3SiBm16BUCer xL67rHEdb+Ydq3hrcFfCpgQ+WS5Q0dflphxVD3m1koA9ehbeWq8Duf1shYDGTo7jjSKs ygz4TQEyOCWGtCSAPHq6/LCYDmJymNvASPrT1CQRPdjOU2xydNrEYzdZSwKfQYSI/fAz VTon7jpdgBewSVwGCQb8rqcPyrxuJnZewd2q1liFb21EK6ESoSrkLBO9Gq+Xd4Rf3tWd NQPA== X-Gm-Message-State: ALoCoQlfYVRnje4WOrllEQYQPU8cJN7wGtaIPc2gXWaGk6wetzf8RBz6hzYl/lszKy25QMPCNZxh X-Received: by 10.180.95.163 with SMTP id dl3mr6535771wib.30.1432292863331; Fri, 22 May 2015 04:07:43 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id ch2sm6988793wib.18.2015.05.22.04.07.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 May 2015 04:07:42 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Fri, 22 May 2015 13:07:31 +0200 Message-Id: <1432292852-15701-1-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.0 Subject: [dpdk-dev] [PATCH 1/2] app/testpmd: use correct hardware address in ARP replies X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2015 11:07:43 -0000 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 --- app/test-pmd/icmpecho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/icmpecho.c b/app/test-pmd/icmpecho.c index 010c5a9..c5933f4 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; -- 2.1.0