Setsockopt works fine?

From: Marta Rodon (P-calveras) EXP SEP 03 (mrodon@mat.upc.es)
Date: Thu May 22 2003 - 10:23:29 EST


Hi people,

I have a problem with the function setsockopt and I don't know what to do. I'ma
using Red Hat 8.0 with the kernel version 2.4.18-14. The fact is that I try to
change the MSS value with the command:
...
int val=530;
int siz=sizeof(int)
setsockopt(socket,6,TCP_MAXSEG,&val,siz);
...
And it seems to work when I ask for the parameter value with de getsockopt.
But, when I capture the traffic frames with tcpdump and I look at the
negotiated MSS value at the SYN frame for the connection I realise that it's
1460. And I also see that the lenght of the rest of packets is as maximum 1460
too.

Someone knows how to check if the setsockopt function is working properly?
Setsockopt doesn't give me any error.

Thanks to everybody!!!

Marta :-)

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:03 EST