Thanks Ken! On Fri, Feb 12, 2016 at 1:00 PM, Ken-ichirou MATSUZAWA <chamaken@xxxxxxxxx> wrote: > Hi, > > On Fri, Feb 12, 2016 at 09:40:49AM +0530, Gadre Nayan wrote: >> Who is providing both these structures (struct nf_conntrack *ct, void > > struct nf_conntrack is allocated by nfct_new(). You would find this > function called in __callback() in src/callback.c. Then it parses > nlmsg and updates nf_conntrack, calls callback function you > registered. > > The __callback() is registerd as callback of which libnfnetlink will > call when conntrack nlmsg has received, at nfct_callback_register() > in src/conntrack/api.c. > > # it seems that using nfct_callback_register, functions related to > # libnfnetlink, is discouraged for me. > > I hope this is an answer you are looking for. > Thanks, -- 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