Chris Caudle <chris@xxxxxxxxxxxxxxx> wrote: > I need to update a driver which using nf_register_hook() and > nf_unregister_hook(); calls to those functions fail on recent kernels, so > I need to change to (according to gcc error message recommendation) > nf_register_net_hook() and nf_unregister_net_hook(). > > The documentation I found while searching is here: > https://www.netfilter.org/documentation/HOWTO//netfilter-hacking-HOWTO-4.html#ss4.5 > > but that still only mentions nf_register_hook. > Where do I find the documentation I need to make sure I convert the driver > to using the newer functions correctly? https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git/commit/security/selinux/hooks.c?id=8e71bf75efceff07e04e1f8a4b7c0dbff7205949 Or pass &init_net if the hook is irrelevant for other net namesapces. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html