All of lore.kernel.org
 help / color / mirror / Atom feed
* Polling for conntrack events
@ 2010-04-26 15:20 Morgon J. Kanter
  2010-04-27 18:11 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 3+ messages in thread
From: Morgon J. Kanter @ 2010-04-26 15:20 UTC (permalink / raw)
  To: netfilter

Hi,

I'm developing an application that uses libnetfilter_conntrack to note when 
connections start and end as part of what it does. So far I've been able to do 
just fine is use nfct_filter with nfct_catch and have a function called 
whenever the appropriately filtered conntrack events happen. This works well, 
but my program doesn't *just* look for conntrack events and act on them. To 
keep it single-threaded what I'd like to do is just be able to poll for 
conntrack events, with poll() or select() or whatever.

What I attempted was extracting the netlink fd with the filter applied, and 
running select() on a set containing just that, and then using nfct_query(). 
This didn't work at all though -- when filtered conntrack events do happen, 
apparently nothing is pushed down that file descriptor. Is there any way to do 
what I want? I didn't see anything that was using this sort of functionality 
in the utils directory.

Thanks,
-- Morgon

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

end of thread, other threads:[~2010-04-28  8:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 15:20 Polling for conntrack events Morgon J. Kanter
2010-04-27 18:11 ` Pablo Neira Ayuso
2010-04-28  8:03   ` Eric Leblond

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.