+/* Arguments for the nf_register_queue_handler and
+ * the nf_unregister_queue_handler hook functions
+ * Kernel changes here:
+ * http://patchwork.ozlabs.org/patch/201369/
+ */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,2)
+#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);
+}
+#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);
+ return 0;
+}
+#endif
+