aboutsummaryrefslogtreecommitdiff
path: root/src/pdesc.c
diff options
context:
space:
mode:
authorMasaq- <tilt@techie.com>2019-01-30 22:42:00 +0000
committerMasaq- <tilt@techie.com>2019-01-30 22:42:00 +0000
commit020634e1e84ab6063b0b403432002073bdaffe09 (patch)
treeef496ad9e4f2eb49bed999c469df5812c90ecf56 /src/pdesc.c
parente5d53acbe1c11d9437648071f550d14e19439f01 (diff)
short command line options -w -a -t
Diffstat (limited to 'src/pdesc.c')
-rw-r--r--src/pdesc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pdesc.c b/src/pdesc.c
index b39648f..819bf4e 100644
--- a/src/pdesc.c
+++ b/src/pdesc.c
@@ -111,9 +111,9 @@ proxy_desc_t *create_and_insert_proxy_desc(uint16_t id_no, uint16_t icmp_id,
pthread_mutex_unlock(&chain_lock);
cur->xfer.bytes_in = 0.0;
cur->xfer.bytes_out = 0.0;
- cur->window_size = 64;
- cur->ack_interval = 1.0;
- cur->resend_interval = 1.5;
+ cur->window_size = opts.window_size ? opts.window_size : 64;
+ cur->ack_interval = opts.ack_interval ? opts.ack_interval / 1000.0 : 1.0;
+ cur->resend_interval = opts.resend_interval ? opts.resend_interval / 1000.0 : 1.5;
memset(cur->extended_options, 0, sizeof(cur->extended_options));
cur->send_ring = calloc(cur->window_size, sizeof(icmp_desc_t));
cur->recv_ring = calloc(cur->window_size, sizeof(forward_desc_t *));