From: Patrick McHardy <kaber@trash.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Harald Welte <laforge@netfilter.org>,
Netfilter Development Mailinglist
<netfilter-devel@lists.netfilter.org>, Eric Leblond <eric@inl.fr>
Subject: Re: [RFC] new API for libnetfilter_conntrack
Date: Sun, 05 Nov 2006 17:45:32 +0100 [thread overview]
Message-ID: <454E152C.3090607@trash.net> (raw)
In-Reply-To: <454DF5EA.6030402@netfilter.org>
Pablo Neira Ayuso wrote:
> Patrick McHardy wrote:
>
>>I like that approach. Its getting pretty close to the libnl API,
>>have you considered integrating this in libnl?
>
>
> I'm going to, I'm not too familiar with libnl (just spend some hours
> yesterday and today) but I agree that the new API is getting close. At
> first sight, my impression is that most of the code of my current patch
> could be adapted to introduce ctnetlink support in libnl, and I don't
> mind about doing so in the close future.
>
> Perhaps we can introduce some kind of dependency between libnl and
> libnetfilter_* (of course, providing an homogeneous API) but I'm unsure
> that Thomas would like that.
I don't think thats necessary, libnl includes all the infrastrucure
needed to handle nfnetlink.
> I agree that people could choose between different libraries depending
> on their preferences but at the moment I'm unsure that this would imply
> dropping support for our libraries.
>
> Back to libnl, I think that the cache thing provided by the library is
> nice to implement quick applications without too much effort but I'm
> unsure that this is the place to put this, I think that the data
> structure used to store the entries of, say the neighbour cache, must be
> up to the programmer (array, hash table, tree...), although nothing
> prevents the programmer of not using the cache thing.
Agreed. I have a patch that replaces the linked list caches by hashes,
but it has some drawbacks since not all objects are suitable for
hashing without making expectations about their use. It shouldn't
be hard to use your own scheme, I think the only thing that
prevents it right now is that the structure is hidden from API
users.
> Anyway, I'm going to post the patches for libnfnetlink and
> libnetfilter_conntrack soon, please let me make peace and apply them
> since I do need them in mainline as well as many other people, we can go
> back to this discussion later once I get more familiarized with libnl.
Sure. Harald is renewing your keys, so you can simply apply it yourself.
next prev parent reply other threads:[~2006-11-05 16:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-30 2:25 [RFC] new API for libnetfilter_conntrack Pablo Neira Ayuso
2006-10-31 18:57 ` Pablo Neira Ayuso
2006-11-03 10:03 ` Patrick McHardy
2006-11-05 14:32 ` Pablo Neira Ayuso
2006-11-05 16:45 ` Patrick McHardy [this message]
2006-11-07 19:24 ` Harald Welte
[not found] ` <20061107192458.GJ4423@(none)>
2006-11-08 19:44 ` Pablo Neira Ayuso
2006-11-10 19:07 ` Pablo Neira Ayuso
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=454E152C.3090607@trash.net \
--to=kaber@trash.net \
--cc=eric@inl.fr \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.org \
--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.