* [dts] [PATCH V1]framework: fix packet module src mac issue
@ 2017-01-04 3:43 yufengmx
2017-01-04 3:43 ` [dts] [PATCH V1]framework: src mac won't be set yufengmx
0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2017-01-04 3:43 UTC (permalink / raw)
To: dts; +Cc: yufengmx
*. src mac won't be set when make some pesudo packet
yufengmx (1):
framework: src mac won't be set.
framework/packet.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
1.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1]framework: src mac won't be set.
2017-01-04 3:43 [dts] [PATCH V1]framework: fix packet module src mac issue yufengmx
@ 2017-01-04 3:43 ` yufengmx
2017-01-11 8:16 ` Liu, Yong
0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2017-01-04 3:43 UTC (permalink / raw)
To: dts; +Cc: yufengmx
*. 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)
--
1.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1]framework: src mac won't be set.
2017-01-04 3:43 ` [dts] [PATCH V1]framework: src mac won't be set yufengmx
@ 2017-01-11 8:16 ` Liu, Yong
0 siblings, 0 replies; 3+ messages in thread
From: Liu, Yong @ 2017-01-11 8:16 UTC (permalink / raw)
To: yufengmx, dts
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)
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-11 8:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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).