From: martacarbone Date: Thu, 18 Apr 2013 09:25:40 +0000 (+0200) Subject: Fix the nf_register_queue_handler() call. X-Git-Tag: ipfw-20130423-1~2 X-Git-Url: http://git.onelab.eu/?p=ipfw-sourceforge.git;a=commitdiff_plain;h=324460d113b3d58c73a356543994916b36550777 Fix the nf_register_queue_handler() call. The previous version will freeze the kernel. --- diff --git a/dummynet2/ipfw2_mod.c b/dummynet2/ipfw2_mod.c index 9830801..6fdb756 100644 --- a/dummynet2/ipfw2_mod.c +++ b/dummynet2/ipfw2_mod.c @@ -802,13 +802,13 @@ nf_unregister_hooks(struct nf_hook_ops *ops, int n) #define HOOK_REGISTER_ARGS PF_INET, REG_QH_ARG(ipfw2_queue_handler) #define HOOK_UNREGISTER_ARGS PF_INET UNREG_QH_ARG(ipfw2_queue_handler) int nf_register_queue_handler_(u_int8_t pf, const struct nf_queue_handler *qh) { - return nf_register_queue_handler_(pf, qh); + return nf_register_queue_handler(pf, qh); } #else /* linux > 3.8.2 */ #define HOOK_REGISTER_ARGS REG_QH_ARG(ipfw2_queue_handler) #define HOOK_UNREGISTER_ARGS int nf_register_queue_handler_(const struct nf_queue_handler *qh) { - nf_register_queue_handler_(qh); + nf_register_queue_handler(qh); return 0; } #endif