[LIBNFNETLINK] Introduce nfnl_listen_for_msecs

Patrick McHardy kaber at trash.net
Tue Feb 7 15:39:03 CET 2006


Pablo Neira Ayuso wrote:
> Patrick McHardy wrote:
> 
>>>The patch attached introduces a new function called
>>>nfnl_listen_for_msecs. This is useful for polling netlink events.
>>
>>Can you give an example how this is going to be used?
> 
> 
> A program waits for some specific event, if it doesn't happen in a given
> period of time, it gives up.

I got that :) What I actually wanted to know is what kind of program
would need this, and if its not likely that most programs need their
own select-loop for dealing with other fds anyway. Or in other words,
I'm not convinced this feature belongs inside libnfnetlink.



More information about the netfilter-devel mailing list