netdev
[Top] [All Lists]

Re: some queries

To: Ankit Jain <radical@xxxxxxxxxxxx>
Subject: Re: some queries
From: Sridhar Samudrala <samudrala@xxxxxxxx>
Date: Mon, 17 Jun 2002 16:21:03 -0700
Cc: netdev@xxxxxxxxxxx
References: <Pine.LNX.4.33L2.0206151420410.4436-100000@radical.corewars.org>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529
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









<Prev in Thread] Current Thread [Next in Thread>
  • some queries, Ankit Jain
    • Re: some queries, Sridhar Samudrala <=