aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlexey Kodanev <alexey.kodanev@oracle.com>2015-03-10 13:46:56 +0300
committerAlexey Kodanev <alexey.kodanev@oracle.com>2015-03-11 16:56:06 +0300
commitd7ef041a40c379a120cfe46bb1fe1e59122efa8c (patch)
tree8461888babeaf573c96039befe3b9c387497f319 /utils
parentbed22a78c6cf3b48db9ee445537d68d1dfbd4539 (diff)
sctp: test_1_to_1_sockopt.c: set SO_SNDBUF above the defined minimum
SO_SNDBUF have the following minimum value: TCP_SKB_MIN_TRUESIZE (2048 + sizeof(struct sk_buff)) SOCK_MIN_SNDBUF (TCP_SKB_MIN_TRUESIZE * 2) The test set 'SO_SNDBUF' to 2048, then it gets the value back with getsockopt(). But the value was defaulted in the kernel to the SOCK_MIN_SNDBUF. Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'utils')
-rw-r--r--utils/sctp/func_tests/test_1_to_1_sockopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sctp/func_tests/test_1_to_1_sockopt.c b/utils/sctp/func_tests/test_1_to_1_sockopt.c
index 4cd84da57..436b344e9 100644
--- a/utils/sctp/func_tests/test_1_to_1_sockopt.c
+++ b/utils/sctp/func_tests/test_1_to_1_sockopt.c
@@ -340,7 +340,7 @@ main(void)
"got value differs Set Value=%d Get Value=%d",
(2*rcvbuf_val_set), rcvbuf_val_get);
- sndbuf_val_set = 2048;
+ sndbuf_val_set = 5000;
/* TEST17: Test case for setsockopt SO_SNDBUF */
error = setsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_set, len);
if (error < 0)