From: "Liu, Yong" <yong.liu@intel.com>
To: yufengmx <yufengx.mo@intel.com>, dts@dpdk.org
Subject: Re: [dts] [PATCH V1]framework: src mac won't be set.
Date: Wed, 11 Jan 2017 16:16:24 +0800 [thread overview]
Message-ID: <5875E9D8.3010404@intel.com> (raw)
In-Reply-To: <1483501435-25560-2-git-send-email-yufengx.mo@intel.com>
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 <yufengx.mo@intel.com>
> ---
> 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)
>
>
prev parent reply other threads:[~2017-01-11 8:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-04 3:43 [dts] [PATCH V1]framework: fix packet module src mac issue yufengmx
2017-01-04 3:43 ` [dts] [PATCH V1]framework: src mac won't be set yufengmx
2017-01-11 8:16 ` Liu, Yong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5875E9D8.3010404@intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
--cc=yufengx.mo@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).