[dts] [PATCH V1]framework: src mac won't be set.
yufengmx
yufengx.mo at intel.com
Wed Jan 4 04:43:55 CET 2017
*. src mac won't be set when make some pesudo packet.
Signed-off-by: yufengmx <yufengx.mo at 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
More information about the dts
mailing list