netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* some queries
@ 2002-06-15  8:54 Ankit Jain
  2002-06-17 23:21 ` Sridhar Samudrala
  0 siblings, 1 reply; 2+ messages in thread
From: Ankit Jain @ 2002-06-15  8:54 UTC (permalink / raw)
  To: netdev

Hi,

I have been trying to find answers to some queries but noone seems to be
able to help. My queries are: (kernel 2.4.18)

1. what is tcp_ehash_bucket used for? hash table for tcp sockets? what
does the "e" is the ehash mean/represent?

2. Why is a tcp control socket created at init time in tcp_v4_init(..) ?
Its of SOCK_RAW type and its unhashed to make sure that it doesnt receive
any incoming packets. why? is it used to set some options or something?
Where is it used?

Hoping for a reply!! :)

-Ankit

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: some queries
  2002-06-15  8:54 some queries Ankit Jain
@ 2002-06-17 23:21 ` Sridhar Samudrala
  0 siblings, 0 replies; 2+ messages in thread
From: Sridhar Samudrala @ 2002-06-17 23:21 UTC (permalink / raw)
  To: Ankit Jain; +Cc: netdev

Ankit Jain wrote:

>Hi,
>
>I have been trying to find answers to some queries but noone seems to be
>able to help. My queries are: (kernel 2.4.18)
>
>1. what is tcp_ehash_bucket used for? hash table for tcp sockets? what
>does the "e" is the ehash mean/represent?
>
It is a hash table of all tcp sockets in ESTABLISHED state.

>
>2. Why is a tcp control socket created at init time in tcp_v4_init(..) ?
>Its of SOCK_RAW type and its unhashed to make sure that it doesnt receive
>any incoming packets. why? is it used to set some options or something?
>Where is it used?
>
The main purpose of this socket is to send RSTs when a packet is 
received for a non-existing socket.

Thanks
Sridhar

>
>Hoping for a reply!! :)
>
>-Ankit
>
>
>
>  
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-17 23:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-15  8:54 some queries Ankit Jain
2002-06-17 23:21 ` Sridhar Samudrala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).