vm.add_instruction( new StreamVmInstructionFixChecksumIpv4(20) );
vm.add_instruction( new StreamVmInstructionFlowMan( "var1",8,
- StreamVmInstructionFlowMan::FLOW_VAR_OP_INC,0,1,7 )
+ StreamVmInstructionFlowMan::FLOW_VAR_OP_INC,1,1,7 )
);
vm.add_instruction( new StreamVmInstructionWriteToPkt( "var1",14, 0,true)
);
StreamVm vm;
vm.add_instruction( new StreamVmInstructionFlowMan( "var1",1,
- StreamVmInstructionFlowMan::FLOW_VAR_OP_INC,0,1,7 )
+ StreamVmInstructionFlowMan::FLOW_VAR_OP_INC,1,1,7 )
);
vm.add_instruction( new StreamVmInstructionWriteToPkt( "var1",26, 0,true)
);
vm.add_instruction( new StreamVmInstructionFlowMan( "src_port",
2,
StreamVmInstructionFlowMan::FLOW_VAR_OP_RANDOM,
- 0,
+ 1025,
1025,
65000));
vm.add_instruction( new StreamVmInstructionFlowMan( "dst_port",
2,
StreamVmInstructionFlowMan::FLOW_VAR_OP_RANDOM,
- 0,
+ 1025,
1025,
65000));
vm.add_instruction( new StreamVmInstructionFlowMan( "rand_pkt_size_var",
2, // size var must be 16bit size
StreamVmInstructionFlowMan::FLOW_VAR_OP_INC,
- 127,
+ 128,
128,
256));
vm.add_instruction( new StreamVmInstructionFlowMan( "rand_pkt_size_var",
2, // size var must be 16bit size
StreamVmInstructionFlowMan::FLOW_VAR_OP_RANDOM,
- 0,
+ 128,
128,
256));
vm.add_instruction( new StreamVmInstructionFlowMan( "rand_pkt_size_var",
2, // size var must be 16bit size
StreamVmInstructionFlowMan::FLOW_VAR_OP_RANDOM,
- 127,
+ 128,
128,
256));