Hi! > 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.
I guess that the setsockopt() does that without failing and then the comparsion of the value you get with getsockopt() fails, right? I still do not get why the code does: if ((2 * sndbuf_val_set) != sndbuf_val_get) Shouldn't the sndbuf_val_set == sndbuf_val_get once the value is changed to 5000? -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ 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