summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-30 10:51:23 +0100
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-30 10:51:23 +0100
commitc089d9ccc2552c0caee55bfa6c2e6df76e82fe33 (patch)
tree7b1e67009291b3f4890997dfdbf3875601643af7 /src/tools
parent4c72c5065411a394f04faebbe0a574a7e1f3e65f (diff)
downloadouroboros-c089d9ccc2552c0caee55bfa6c2e6df76e82fe33.tar.gz
ouroboros-c089d9ccc2552c0caee55bfa6c2e6df76e82fe33.zip
tools: Fix parameters in oping tool
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/oping/oping.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/oping/oping.c b/src/tools/oping/oping.c
index 801f79b5..8bb01daf 100644
--- a/src/tools/oping/oping.c
+++ b/src/tools/oping/oping.c
@@ -94,7 +94,7 @@ static void usage(void)
" -c, --count Number of packets (default 1000)\n"
" -i, --interval Interval (ms, default 1000)\n"
" -n, --server-apn Name of the oping server\n"
- " -s, --size Payload size (b, default 64)\n"
+ " -s, --size Payload size (B, default 64)\n"
" --help Display this help text and exit\n");
}
@@ -164,11 +164,12 @@ int main(int argc, char ** argv)
client.interval = 10000;
}
if (client.size > OPING_BUF_SIZE) {
- printf("Packet size truncated to 1500 bytes.\n");
- client.size = 1500;
+ printf("Packet size truncated to %d bytes.\n",
+ OPING_BUF_SIZE);
+ client.size = OPING_BUF_SIZE;
}
- if (client.size < 2) {
+ if (client.size < 64) {
printf("Packet size set to 64 bytes.\n");
client.size = 64;
}