From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Subject: Re: connection tracking question Date: Thu, 13 May 2004 00:35:41 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <40A2A6BD.9050300@eurodev.net> References: <6A94CF724B046C4FB3434D14A49A58BF1CB7D3@pluto.rovingplanet.com> <40A2A35B.4010809@eurodev.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: To: Paul Albert , Netfilter Development Mailinglist In-Reply-To: <40A2A35B.4010809@eurodev.net> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org ops sorry, error... !:-) Pablo Neira wrote: >> Specifically, I would like to know when the ESTABLISHED state is set >> in the kernel. > > > mmm, i suppose that you are talking about a tcp connection, not necessarily, you could be talking also about conntrack state, yes please have a look at: http://lxr.linux.no/source/net/ipv4/netfilter/ip_conntrack_core.c#L738 function resolve_normal_ct, see the ct_info var. Don't mix tcp states with conntrack states, they are independent. regards, Pablo