Dear Nivedita, Thank you for your message. 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. if(level != SOL_TCP) return tp->af_specific->getsockopt(sk, level, optname, optval, optlen); I am not sure what is wrong. Regards Leigh > -----Original Message----- > From: Nivedita Singhvi [mailto:niv@us.ibm.com] > Sent: Friday, December 20, 2002 9:35 AM > To: leigh@softtech.co.nz > Cc: linux-net@vger.kernel.org > Subject: Re: TCP_INFO Redhat 8.0 > > > Leigh Wanstead wrote: > > > > Hi, > > > > I used default Redhat 8.0 and use following call > > > > getsockopt (s,SOL_TCP,TCP_INFO, &info, ..) from > > http://www.blu.org/pipermail/discuss/2001-June/020145.html. > > > > And got error "protocol not supported". > > > > What do I need to do? Do I need to recompile kernel with some special > > settings? > > > > TIA > > Leigh > > > > - > > : 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 > > Try IPPROTO_TCP instead of SOL_TCP. > > 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