Leigh Wanstead wrote: > I was wrong in my previous email error message. I tried both(SOL_TCP and > IPPROTO_TCP) and got same error message "Protocol not available." > > I checked /usr/src/linux-2.4.18-14/net/ipv4/tcp.c. In tcp_getsockopt > function actually check SOL_TCP. Here is the code. Specifying the kernel version is more useful to some of us as compared to saying default RH 8 ;) > if(level != SOL_TCP) > return tp->af_specific->getsockopt(sk, level, optname, > optval, optlen); > I am not sure what is wrong. The kernel knows what SOL_TCP is, but typically, user apps might not see a definition of SOL_TCP. (Or this is not a very portable application :)) However, you will see a definition of IPPROTO_TCP at the very least, so if youre somehow passing down a value of 6, it should be supported.. Have you printed out at the very least what values are getting sent down? What header files are you including? thanks, Nivedita - : 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