View previous topic :: View next topic |
Author |
Message |
loswillios
Joined: 10 Jul 2007 Posts: 2
|
Posted: Wed Jul 11, 2007 9:50 pm Post subject: make miniupnpd 2.6.22+ compatible |
|
|
Hi,
I would like to see miniupnpd running with 2.6.22. Currently it uses the old ip_conntrack which is replaced by nf_conntrack in 2.6.22+.
I could help testing
bye
jan |
|
Back to top |
|
|
loswillios
Joined: 10 Jul 2007 Posts: 2
|
Posted: Fri Jul 13, 2007 2:50 pm Post subject: |
|
|
This simple patch seem to fix it:
Code: | diff -urN miniupnpd-1.0-RC6/linux/iptcrdr.c miniupnpd-1.0-RC6.new/linux/iptcrdr.c
--- miniupnpd-1.0-RC6/linux/iptcrdr.c 2007-06-11 15:25:40.000000000 +0200
+++ miniupnpd-1.0-RC6.new/linux/iptcrdr.c 2007-07-13 14:59:58.000000000 +0200
@@ -15,7 +15,12 @@
#include <dlfcn.h>
#include <libiptc/libiptc.h>
#include <iptables.h>
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
+#include <linux/netfilter/nf_nat.h>
+#else
#include <linux/netfilter_ipv4/ip_nat.h>
+#endif
#include "iptcrdr.h"
/* chain name to use, both in the nat table
|
thx to florian @ openwrt |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Fri Jul 13, 2007 3:17 pm Post subject: |
|
|
expect this patch to be included in all future releases of miniupnpd ! _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
|
Back to top |
|
|
|