* libnetfilter_conntrack callbacks and nfct_destroy
@ 2010-08-03 6:24 Andrew Beverley
2010-08-03 13:19 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Beverley @ 2010-08-03 6:24 UTC (permalink / raw)
To: netfilter
I have 2 questions regarding libnetfilter_conntrack please:
- When using nfct_callback_register() and then nfct_query(), is the
callback that is subsequently generated a synchronous callback? (It
appears to be, I'd just like positive confirmation).
- Should nfct_destroy() be called after each use of nfct_new() to
prevent memory leaks? I assume that the answer is yes, but only one of
the examples in the source code use it.
Thanks,
Andy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: libnetfilter_conntrack callbacks and nfct_destroy
2010-08-03 6:24 libnetfilter_conntrack callbacks and nfct_destroy Andrew Beverley
@ 2010-08-03 13:19 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2010-08-03 13:19 UTC (permalink / raw)
To: Andrew Beverley; +Cc: netfilter
On 03/08/10 08:24, Andrew Beverley wrote:
> I have 2 questions regarding libnetfilter_conntrack please:
>
> - When using nfct_callback_register() and then nfct_query(), is the
> callback that is subsequently generated a synchronous callback? (It
> appears to be, I'd just like positive confirmation).
The callback is invoked if we succesfully receive the reply message from
the ctnetlink subsystem.
> - Should nfct_destroy() be called after each use of nfct_new() to
> prevent memory leaks? I assume that the answer is yes, but only one of
> the examples in the source code use it.
Yes, nfct_new() requires nfct_destroy() afterwards in order to avoid
memory leaks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-03 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-03 6:24 libnetfilter_conntrack callbacks and nfct_destroy Andrew Beverley
2010-08-03 13:19 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox