Re: libnetfilter_conntrack callbacks and nfct_destroy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux