From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E3C95592C for ; Wed, 11 Jan 2017 09:20:44 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP; 11 Jan 2017 00:20:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,345,1477983600"; d="scan'208";a="212035477" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga004.fm.intel.com with ESMTP; 11 Jan 2017 00:20:42 -0800 Message-ID: <5875E9D8.3010404@intel.com> Date: Wed, 11 Jan 2017 16:16:24 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: yufengmx , dts@dpdk.org References: <1483501435-25560-1-git-send-email-yufengx.mo@intel.com> <1483501435-25560-2-git-send-email-yufengx.mo@intel.com> In-Reply-To: <1483501435-25560-2-git-send-email-yufengx.mo@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH V1]framework: src mac won't be set. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2017 08:20:45 -0000 Thanks, yufen. Applied. On 01/04/2017 11:43 AM, yufengmx wrote: > *. src mac won't be set when make some pesudo packet. > > Signed-off-by: yufengmx > --- > framework/packet.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/framework/packet.py b/framework/packet.py > index f19a638..fb99d35 100755 > --- a/framework/packet.py > +++ b/framework/packet.py > @@ -345,7 +345,8 @@ class scapy(object): > self.print_summary() > if intf != '': > # fix fortville can't receive packets with 00:00:00:00:00:00 > - self.pkt.getlayer(0).src = get_if_hwaddr(intf) > + if self.pkt.getlayer(0).src == "00:00:00:00:00:00": > + self.pkt.getlayer(0).src = get_if_hwaddr(intf) > sendp(self.pkt, iface=intf, count=count) > >