Re: Connection tracking notification events

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

 



Hi Anil,

When you enable "CONFIG_NF_CONNTRACK_EVENTS" there is a notifier that
gets registered automatically.

I think you should disable this Configuration and then register your
module with your own event notifier structure.

Regards

On Tue, Mar 8, 2016 at 5:58 PM, Anil kumar <anilkumar508@xxxxxxxxx> wrote:
> Hi All,
>
> I am trying to test the connection tracking notification events.  For
> this i have enabled the config "CONFIG_NF_CONNTRACK_EVENTS" and trying
> to register for the notifications using nf_conntrack_register_notifier
> function.
>
> static struct nf_ct_event_notifier fp_conntrack_event_nb = {
>         .fcn = fp_conntrack_event,
> };
>
> ret = nf_conntrack_register_notifier(&init_net, &fp_conntrack_event_nb);
>
>
> This registration function is failing (return value is less than 0).
> Also tried in older kernel (in 3.1 kernel, the function takes single
> argument) the function is failing.
> Do we need enable any other configs ?
>
>
> Thanks,
> Anil
> --
> 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
--
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