summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-02-23 16:13:46 +0200
committerHanoh Haim <hhaim@cisco.com>2016-02-23 16:13:46 +0200
commit5a951d9435dd13b8c785969f1fd85b1c19743ab0 (patch)
tree92a91af52ddf392643922f9842c4d9cbf20a9a4f /src/rpc-server/commands/trex_rpc_cmd_stream.cpp
parent36cc1ecef32dcee3640e6ddf96422c07d89777b3 (diff)
add to mask instruction add_value field
Diffstat (limited to 'src/rpc-server/commands/trex_rpc_cmd_stream.cpp')
-rw-r--r--src/rpc-server/commands/trex_rpc_cmd_stream.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
index 50295c7c..93a680c9 100644
--- a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
+++ b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
@@ -319,6 +319,7 @@ TrexRpcCmdAddStream::parse_vm_instr_write_mask_flow_var(const Json::Value &inst,
uint16_t pkt_cast_size = parse_uint16(inst, "pkt_cast_size", result);
uint32_t mask = parse_uint32(inst, "mask", result);
int shift = parse_int(inst, "shift", result);
+ int add_value = parse_int(inst, "add_value", result);
bool is_big_endian = parse_bool(inst, "is_big_endian", result);
stream->m_vm.add_instruction(new StreamVmInstructionWriteMaskToPkt(flow_var_name,
@@ -326,6 +327,7 @@ TrexRpcCmdAddStream::parse_vm_instr_write_mask_flow_var(const Json::Value &inst,
(uint8_t)pkt_cast_size,
mask,
shift,
+ add_value,
is_big_endian));
}