aboutsummaryrefslogtreecommitdiffstats
path: root/GPL/traffic_profiles/trex/trex-astf-ethip4udp-262144h.py
diff options
context:
space:
mode:
Diffstat (limited to 'GPL/traffic_profiles/trex/trex-astf-ethip4udp-262144h.py')
-rw-r--r--GPL/traffic_profiles/trex/trex-astf-ethip4udp-262144h.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/GPL/traffic_profiles/trex/trex-astf-ethip4udp-262144h.py b/GPL/traffic_profiles/trex/trex-astf-ethip4udp-262144h.py
index 43ca0cba48..728eba8a04 100644
--- a/GPL/traffic_profiles/trex/trex-astf-ethip4udp-262144h.py
+++ b/GPL/traffic_profiles/trex/trex-astf-ethip4udp-262144h.py
@@ -78,6 +78,8 @@ class TrafficProfile(TrafficProfileBaseClass):
# receive RES message
prog_c.recv_msg(1)
+ prog_c.delay(self.udp_keepalive * 1000) # delay is defined in usec
+
# server commands
prog_s = ASTFProgram(stream=False)
# set the keepalive timer for UDP flows to not close udp session
@@ -88,6 +90,8 @@ class TrafficProfile(TrafficProfileBaseClass):
# send RES message
prog_s.send_msg(self.udp_res)
+ prog_s.delay(self.udp_keepalive * 1000) # delay is defined in usec
+
# ip generators
ip_gen_c = ASTFIPGenDist(
ip_range=[self.p1_src_start_ip, self.p1_src_end_ip],