commit | c80249d0e45dc5b6391e5d48219aeab3e63c51dd | [log] [tgz] |
---|---|---|
author | macauley_cheng <macauley_cheng@accton.com> | Mon Nov 09 14:11:18 2015 +0800 |
committer | macauley_cheng <macauley_cheng@accton.com> | Mon Nov 09 14:11:18 2015 +0800 |
tree | cefcf22479a0a5eb710a5cf84caaaff14e8e9814 | |
parent | 29e4f3bbbe8b5bf34bd17ca5726a94d2f8f39d6c [diff] |
src/
diff --git a/src/python/oftest/testutils.py b/src/python/oftest/testutils.py index acf7bde..f419c21 100755 --- a/src/python/oftest/testutils.py +++ b/src/python/oftest/testutils.py
@@ -73,10 +73,10 @@ '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'): pkt = ''.join(content.split(" ")).decode('hex') - + pkt = scapy.Ether(pkt) if len(pkt) < 64: pkt = pkt/("D" * (64 - len(pkt))) - + #scapy.hexdump(pkt) return pkt def simple_tcp_packet(pktlen=100,