netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Volker Poplawski <volker@openbios.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: libnl: initial cache fill
Date: Tue, 16 Jun 2009 13:42:12 +0200	[thread overview]
Message-ID: <4A378514.1080100@trash.net> (raw)
In-Reply-To: <200906161311.38251.volker@openbios.org>

Volker Poplawski wrote:
> Why is
> nl_cache_request_full_dump ()
> not part of the public api of libnl?
> 
> Or do i miss the intended way for an initial cache fill when using the cache-
> manager? 

I think you should use nl_cache_mngr_add(), which will dump the
current contents from the kernel and keep the cache up to date
using event messages. IIRC nl_cache_resync() is intended to be
used after receiving an ENOBUFS from the kernel (indicating that
an event message was lost) to trigger a resync. This is an expensive
operation however and may lead to event loss itself, so it probably
makes sense to slightly delay it after receiving an ENOBUFS to make
sure you don't make things worse.

> And BTW: What actually is part of the public api?
> The doxygen docs on libnl give no clue about what is for applications and what 
> is used internally.

Everything declared in one of the headers under include/netlink/
can be considered part of the public API.


      reply	other threads:[~2009-06-16 11:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-16 11:11 libnl: initial cache fill Volker Poplawski
2009-06-16 11:42 ` Patrick McHardy [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=4A378514.1080100@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=volker@openbios.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).