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
|