All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gidon Miller <gmiller@vasonanetworks.com>
To: "Krzysztof Olędzki" <ole@ans.pl>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>,
	netfilter-devel <netfilter-devel@vger.kernel.org>
Subject: Re: conntrack (nf_conn) locking question
Date: Sun, 18 Sep 2011 10:04:21 +0300	[thread overview]
Message-ID: <CAOAcFN_+tRmu9C0HCOcDzsH66gJoGWtqf+0e2yjCgfKPrr9nDA@mail.gmail.com> (raw)
In-Reply-To: <4E6E5985.9080306@ans.pl>

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ędzki <ole@ans.pl>
>
> 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:
>  include/net/netfilter/nf_conntrack_acct.h
>  include/net/netfilter/nf_conntrack_extend.h
>
> BTW: if nothing changed, extensions can be only attached to a conntrack before it is confirmed.
>
> Best regards,
>
>                                Krzysztof Olędzki
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2011-09-18  7:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08  8:12 conntrack (nf_conn) locking question Gidon Miller
2011-09-12  8:45 ` Pablo Neira Ayuso
2011-09-12 10:11   ` Gidon Miller
2011-09-12 18:53     ` Pablo Neira Ayuso
2011-09-12 19:12       ` Krzysztof Olędzki
2011-09-18  7:04         ` Gidon Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOAcFN_+tRmu9C0HCOcDzsH66gJoGWtqf+0e2yjCgfKPrr9nDA@mail.gmail.com \
    --to=gmiller@vasonanetworks.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=ole@ans.pl \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.