summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2018-06-07 23:35:14 +0200
committerSander Vrijders <[email protected]>2018-06-08 10:26:07 +0200
commitb74980761cdcd9a706760ae9a4efb3806ca9bee2 (patch)
tree7619284e1ceb8044c9e5bf1b8fcea6729aead825 /src/tools
parent7d51ff3e5a4e42f21c9e5e89e5ea8493b7737161 (diff)
downloadouroboros-b74980761cdcd9a706760ae9a4efb3806ca9bee2.tar.gz
ouroboros-b74980761cdcd9a706760ae9a4efb3806ca9bee2.zip
lib: Add a data qos cube
This adds a data qos cube that is reliable. Reliable qos can be selected by setting the loss parameter of the qosspec to 0. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/oping/oping.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/oping/oping.c b/src/tools/oping/oping.c
index 18801c2d..8396e261 100644
--- a/src/tools/oping/oping.c
+++ b/src/tools/oping/oping.c
@@ -122,7 +122,8 @@ static void usage(void)
" -d, --duration Duration of the test (default 1s)\n"
" -i, --interval Interval (default 1000ms)\n"
" -n, --server-name Name of the oping server\n"
- " -q, --qos QoS (raw, best, video or voice)\n"
+ " -q, --qos QoS (raw, best, video, voice, data)"
+ "\n"
" -s, --size Payload size (B, default 64)\n"
" -Q, --quiet Only print final statistics\n"
" -D, --timeofday Print time of day before each line"
@@ -230,6 +231,8 @@ int main(int argc,
client.qs = qos_video;
else if (strcmp(qos, "voice") == 0)
client.qs = qos_voice;
+ else if (strcmp(qos, "data") == 0)
+ client.qs = qos_data;
else
printf("Unknown QoS cube, defaulting to raw.\n");
}