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
|