netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libnl: initial cache fill
@ 2009-06-16 11:11 Volker Poplawski
  2009-06-16 11:42 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Volker Poplawski @ 2009-06-16 11:11 UTC (permalink / raw)
  To: netfilter-devel

Hi all.

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? 

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.



Greetings
....Volker




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libnl: initial cache fill
  2009-06-16 11:11 libnl: initial cache fill Volker Poplawski
@ 2009-06-16 11:42 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2009-06-16 11:42 UTC (permalink / raw)
  To: Volker Poplawski; +Cc: netfilter-devel

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-16 11:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16 11:11 libnl: initial cache fill Volker Poplawski
2009-06-16 11:42 ` Patrick McHardy

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).