Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f6d11f9
)
regression failure: VM with dec might not be able to pad the instruction to true...
author
imarom
<
[email protected]
>
Mon, 26 Sep 2016 12:10:39 +0000
(15:10 +0300)
committer
imarom
<
[email protected]
>
Mon, 26 Sep 2016 12:10:39 +0000
(15:10 +0300)
scripts/stl/udp_1pkt_1mac_step.py
patch
|
blob
|
history
diff --git
a/scripts/stl/udp_1pkt_1mac_step.py
b/scripts/stl/udp_1pkt_1mac_step.py
index
69a84d6
..
9ed9e50
100644
(file)
--- a/
scripts/stl/udp_1pkt_1mac_step.py
+++ b/
scripts/stl/udp_1pkt_1mac_step.py
@@
-14,7
+14,7
@@
class STLS1(object):
base_pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)
pad = max(0, size - len(base_pkt)) * 'x'
- vm = STLScVmRaw( [ STLVmFlowVar(name="mac_src", min_value=1, max_value=3
0
, size=1, op="dec",step=7),
+ vm = STLScVmRaw( [ STLVmFlowVar(name="mac_src", min_value=1, max_value=3
5
, size=1, op="dec",step=7),
STLVmWrFlowVar(fv_name="mac_src", pkt_offset= 11) # write it to LSB of SRC offset it 11
]
)