From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gidon Miller Subject: Re: conntrack (nf_conn) locking question Date: Sun, 18 Sep 2011 10:04:21 +0300 Message-ID: References: <20110912084557.GA2080@1984> <20110912185354.GB4018@1984> <4E6E5985.9080306@ans.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Pablo Neira Ayuso , netfilter-devel To: =?ISO-8859-2?Q?Krzysztof_Ol=EAdzki?= Return-path: Received: from na3sys009aog101.obsmtp.com ([74.125.149.67]:38454 "HELO na3sys009aog101.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752096Ab1IRHEX convert rfc822-to-8bit (ORCPT ); Sun, 18 Sep 2011 03:04:23 -0400 Received: by mail-ww0-f49.google.com with SMTP id 14so4285561wwp.18 for ; Sun, 18 Sep 2011 00:04:21 -0700 (PDT) In-Reply-To: <4E6E5985.9080306@ans.pl> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Hi Krzysztof, Pablo, thanks for your advice. it took me a while to get around to have a look at the code but I finally reviewed it a bit. correct me if I'm wrong but it seems that the list of ct extensions is closed. the extension id is defined in enum nf_ct_ext_id and registered in ct->ext whos offset member is NF_CT_EXT_NUM sized. looks like the extensions cannot be expanded if I'm writing my code in a module. have I missed something? thanks, Gidon 2011/9/12 Krzysztof Ol=C4=99dzki > > On 2011-09-12 20:53, Pablo Neira Ayuso wrote: >> >> On Mon, Sep 12, 2011 at 01:11:50PM +0300, Gidon Miller wrote: >>> >>> Hi Pablo, >>> thanks for your reply. can you please refer me to any documentation= on >>> how to use ct extensions? >> >> Only code, see net/netfilter/nf_conntrack_acct.c for instance. > > Plus: > =C2=A0include/net/netfilter/nf_conntrack_acct.h > =C2=A0include/net/netfilter/nf_conntrack_extend.h > > BTW: if nothing changed, extensions can be only attached to a conntra= ck before it is confirmed. > > Best regards, > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Krzysztof Ol=C4=99dzki -- To unsubscribe from this list: send the line "unsubscribe netfilter-dev= el" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html