[LTP] [PATCH 3/3] network/netsress: increase internal message buffer size to 2^16 - 1
Alexey Kodanev
alexey.kodanev@oracle.com
Tue Sep 27 12:06:43 CEST 2016
Allow to pass larger buffer to sendto()/recvfrom(). netstress's
protocol already supports setting such size as it has 16 bit field
for message size parameter.
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
---
testcases/network/netstress/netstress.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/testcases/network/netstress/netstress.c b/testcases/network/netstress/netstress.c
index 4d7ffcc..26fd217 100644
--- a/testcases/network/netstress/netstress.c
+++ b/testcases/network/netstress/netstress.c
@@ -36,7 +36,7 @@
char *TCID = "netstress";
-static const int max_msg_len = 1500;
+static const int max_msg_len = (1 << 16) - 1;
/* TCP server requiers */
#ifndef TCP_FASTOPEN
--
1.7.1
More information about the ltp
mailing list