diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-06-21 15:30:16 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-06-21 15:30:34 +0300 |
commit | 3bf54917e0d8817dbadaae73a7545a011676cccf (patch) | |
tree | f1ca0e91e67effc90dcac982796d31348825735f /scripts/stl/udp_1pkt_mac_mask2.py | |
parent | 131bb55c38c0e59d14043766b0d3a38d5f775771 (diff) |
profile fixes
Diffstat (limited to 'scripts/stl/udp_1pkt_mac_mask2.py')
-rw-r--r-- | scripts/stl/udp_1pkt_mac_mask2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/stl/udp_1pkt_mac_mask2.py b/scripts/stl/udp_1pkt_mac_mask2.py index b95a32e3..748ddbb1 100644 --- a/scripts/stl/udp_1pkt_mac_mask2.py +++ b/scripts/stl/udp_1pkt_mac_mask2.py @@ -9,8 +9,8 @@ class STLS1(object): def create_stream (self): - # create a base packet and pad it to size - size = self.fsize - 4; # no FCS + # Create base packet and pad it to size + size = self.fsize - 4; # HW will add 4 bytes ethernet FCS base_pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025) pad = max(0, size - len(base_pkt)) * 'x' |