Setsockopt works fine?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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/

-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux