From 324460d113b3d58c73a356543994916b36550777 Mon Sep 17 00:00:00 2001 From: martacarbone Date: Thu, 18 Apr 2013 11:25:40 +0200 Subject: [PATCH] Fix the nf_register_queue_handler() call. The previous version will freeze the kernel. --- dummynet2/ipfw2_mod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.0