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.koda...@oracle.com>
---
 utils/sctp/func_tests/test_1_to_1_sockopt.c |    2 +-
 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 4cd84da..436b344 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)
-- 
1.7.1


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to