netdev
[Top] [All Lists]

Re: to extract tcpcb datastructure from the kernel

To: sndtrn27@xxxxxxxxxxx
Subject: Re: to extract tcpcb datastructure from the kernel
From: Matti Aarnio <matti.aarnio@xxxxxxxxxxx>
Date: Thu, 7 Jun 2001 15:30:09 +0300
Cc: netdev@xxxxxxxxxxx
In-reply-to: <65256A64.003C757E.00@xxxxxxxxxxxxxxxxxxx>; from sndtrn27@xxxxxxxxxxx on Thu, Jun 07, 2001 at 04:34:49PM +0530
References: <65256A64.003C757E.00@xxxxxxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
On Thu, Jun 07, 2001 at 04:34:49PM +0530, sndtrn27@xxxxxxxxxxx wrote:
> hi all,

   I am sorry, but you have been reading BSD TCP protocol stack
   descriptions, and (un?)fortunately Linux and BSD have entirely
   separate network stack sources.

> A connection is specified in the OPEN call by the local port and
> foreign socket arguments.  In return, the TCP supplies a (short)
> local connection name by which the user refers to the connection
> in subsequent calls.  There are several things that must be remembered
> about a connection.  To store this information there is
> a data structure called a Transmission Control Block (TCB).
> 
> The TCB contains information about the connection state, its associated
> local process, and feedback parameters about the connection's transmission
> properties. The TCB is maintained on a per-connection basis.
> 
> i want to know how can i extract this datastructure from the kernel.????

  Browse thru how the Linux kernel implements
        /proc/net/tcp
  and you will find those socket state objects deep inside the system.

> rajiv

/Matti Aarnio

<Prev in Thread] Current Thread [Next in Thread>