Re: TCP_INFO Redhat 8.0

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

 



> Specifying the kernel version is more useful to some of us as 
> compared to saying default RH 8 ;)

>From my install directory is that kernel version is Redhat8 2.4.18-14.

>From /usr/include/linux/version.h

#define UTS_RELEASE "2.4.9-9"
#define LINUX_VERSION_CODE 132105
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

> Have you printed out at the very least what values are getting sent
> down?

Where and How? Sample please.

Best Regards
Leigh

On Sat, 2002-12-21 at 07:48, Nivedita Singhvi wrote:
> 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

[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