miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

make miniupnpd 2.6.22+ compatible

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request
View previous topic :: View next topic  
Author Message
loswillios



Joined: 10 Jul 2007
Posts: 2

PostPosted: Wed Jul 11, 2007 9:50 pm    Post subject: make miniupnpd 2.6.22+ compatible Reply with quote

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 Smile

bye
jan
Back to top
View user's profile Send private message
loswillios



Joined: 10 Jul 2007
Posts: 2

PostPosted: Fri Jul 13, 2007 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1500

PostPosted: Fri Jul 13, 2007 3:17 pm    Post subject: Reply with quote

expect this patch to be included in all future releases of miniupnpd !
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1500

PostPosted: Mon Oct 01, 2007 3:31 pm    Post subject: Reply with quote

problem fixed since miniupnpd-1.0-RC7
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.