diff options
author | Sander Vrijders <[email protected]> | 2016-10-30 14:04:03 +0000 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-10-30 14:04:03 +0000 |
commit | 94044e99af295e9440d306719a5cf341645d1803 (patch) | |
tree | 49e677cf3626a58737fd3d2d7ac8b0dd7a74517f /src/tools/oping/oping.c | |
parent | 72eb9eed1284643db20c45ef82365fa54fd0ef1c (diff) | |
parent | 05fa4879dd8c70156fd98eabed4634098b0feecb (diff) | |
download | ouroboros-94044e99af295e9440d306719a5cf341645d1803.tar.gz ouroboros-94044e99af295e9440d306719a5cf341645d1803.zip |
Merged in dstaesse/ouroboros/be-dealloc (pull request #293)
operf tool, bugfixing and small improvements
Diffstat (limited to 'src/tools/oping/oping.c')
-rw-r--r-- | src/tools/oping/oping.c | 9 |
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; } |