["udp_1pkt_range_clients_split_garp.py","-m 1 -l 50",True],
["udp_1pkt_src_ip_split.py","-m 1 -l 50 --cores 2",True],
["udp_1pkt_repeat_random.py","-m 1 -l 50",True],
-
-
];
-
- p = [ ["udp_1pkt_repeat_random.py","-m 1 -l 50",True] ]
+ p = [ ["udp_1pkt_repeat_random.py","-m 1 -l 50",True] ];
for obj in p:
self.min_value = convert_val (min_value);
if max_value == None :
- max_value = get_max_by_size()
-
- self.max_value = get_max_by_size (self.size)
+ self.max_value = get_max_by_size (self.size)
+ else:
+ self.max_value = convert_val (max_value)
if self.min_value > self.max_value :
raise CTRexPacketBuildException(-11,("max %d is lower than min %d ") % (self.max_value,self.min_value) );
min_value="48.0.0.1",
max_value="48.0.0.255",
size=4,
- limit=5, seed=0x1234),
+ limit=5, seed=0x1235),
STLVmWrFlowVar (fv_name="ip_src", pkt_offset= "IP.src" ), # write ip to packet IP.src
STLVmWrFlowVar (fv_name="ip_dst", pkt_offset= "IP.dst" ), # write ip to packet IP.dst