diff options
Diffstat (limited to 'scripts/stl/udp_1pkt_src_ip_split.py')
-rw-r--r-- | scripts/stl/udp_1pkt_src_ip_split.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/stl/udp_1pkt_src_ip_split.py b/scripts/stl/udp_1pkt_src_ip_split.py index d83da06e..778ccf54 100644 --- a/scripts/stl/udp_1pkt_src_ip_split.py +++ b/scripts/stl/udp_1pkt_src_ip_split.py @@ -18,10 +18,11 @@ class STLS1(object): vm = STLScVmRaw( [ STLVmFlowVar ( "ip_src", min_value="10.0.0.1", max_value="10.0.0.255", size=4, step=1,op="inc"), - STLVmWrFlowVar (fv_name="ip_src", pkt_offset= "IP.src" ) # write ip to packet IP.src - #STLVmFixIpv4(offset = "IP"), # fix checksum + STLVmWrFlowVar (fv_name="ip_src", pkt_offset= "IP.src" ), # write ip to packet IP.src + STLVmFixIpv4(offset = "IP") # fix checksum ] ,split_by_field = "ip_src" # split to cores base on the tuple generator + ,cache_size =255 # the cache size ); pkt = STLPktBuilder(pkt = base_pkt/pad, |