diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-02-25 18:49:06 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-02-25 18:49:06 +0200 |
commit | 23532d37dd0f8e23ec59e36eb96dd766e65cb6b6 (patch) | |
tree | 7d525308689283f739b9fc378033e5a3f089dcc9 /scripts | |
parent | 58b8669c32c7a3f44b329edbf2246b2f0ac6b229 (diff) |
v1.93
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py | 5 | ||||
-rw-r--r-- | scripts/exp/udp_1pkt_range_clients_split_garp.pcap | bin | 784 -> 3824 bytes | |||
-rw-r--r-- | scripts/stl/udp_1pkt_range_clients_split_garp.py | 8 |
3 files changed, 7 insertions, 6 deletions
diff --git a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py index 48ebefcd..bca44cbe 100644 --- a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py +++ b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py @@ -184,13 +184,14 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test): ["udp_1pkt_mac_mask3.py","-m 1 -l 20 ",True], ["udp_1pkt_simple_test2.py","-m 1 -l 10 ",True], # test split of packet with ip option ["udp_1pkt_simple_test.py","-m 1 -l 10 ",True], - ["udp_1pkt_mac_mask5.py","-m 1 -l 30 ",True] + ["udp_1pkt_mac_mask5.py","-m 1 -l 30 ",True], + ["udp_1pkt_range_clients_split_garp.py","-m 1 -l 50",True] ]; - p1 = [ ["udp_rand_len_9k.py","-m 1 -l 50",True] ] + p1 = [ ["udp_1pkt_range_clients_split_garp.py","-m 1 -l 50",True] ] for obj in p: diff --git a/scripts/exp/udp_1pkt_range_clients_split_garp.pcap b/scripts/exp/udp_1pkt_range_clients_split_garp.pcap Binary files differindex b9cd27fb..dde0c6dd 100644 --- a/scripts/exp/udp_1pkt_range_clients_split_garp.pcap +++ b/scripts/exp/udp_1pkt_range_clients_split_garp.pcap diff --git a/scripts/stl/udp_1pkt_range_clients_split_garp.py b/scripts/stl/udp_1pkt_range_clients_split_garp.py index 273b5202..3b9c8363 100644 --- a/scripts/stl/udp_1pkt_range_clients_split_garp.py +++ b/scripts/stl/udp_1pkt_range_clients_split_garp.py @@ -8,17 +8,17 @@ class STLS1(object): def __init__ (self): self.num_clients =3000; # max is 16bit - self.dg= "55.55.1.0" # set the DG - def create_stream (self): # create a base packet and pad it to size - base_pkt = Ether(src="00:00:dd:dd:00:01",dst="ff:ff:ff:ff:ff:ff")/ARP(psrc="55.55.1.1",hwsrc="00:00:dd:dd:00:01", pdst=self.dg) + base_pkt = Ether(src="00:00:dd:dd:00:01",dst="ff:ff:ff:ff:ff:ff")/ARP(psrc="55.55.1.1",hwsrc="00:00:dd:dd:00:01", hwdst="00:00:dd:dd:00:01", pdst="55.55.1.1") vm = CTRexScRaw( [ STLVmFlowVar(name="mac_src", min_value=1, max_value=self.num_clients, size=2, op="inc"), STLVmWrFlowVar(fv_name="mac_src", pkt_offset= 10), STLVmWrFlowVar(fv_name="mac_src" ,pkt_offset="ARP.psrc",offset_fixup=2), - STLVmWrFlowVar(fv_name="mac_src" ,pkt_offset="ARP.hwsrc",offset_fixup=4) + STLVmWrFlowVar(fv_name="mac_src" ,pkt_offset="ARP.hwsrc",offset_fixup=4), + STLVmWrFlowVar(fv_name="mac_src" ,pkt_offset="ARP.pdst",offset_fixup=2), + STLVmWrFlowVar(fv_name="mac_src" ,pkt_offset="ARP.hwdst",offset_fixup=4), ] ,split_by_field = "mac_src" # split ) |