include $(TOPDIR)/rules.mk
PKG_NAME:=miniupnpd
-PKG_VERSION:=1.8.20140523
-PKG_RELEASE:=4
+PKG_VERSION:=1.8.20140906
+PKG_RELEASE:=1
PKG_SOURCE_URL:=http://miniupnp.free.fr/files
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_MD5SUM:=fcac89e11da091b1cc61f43d83c9e4f5
+PKG_MD5SUM:=72a68c5757031d906a555f84e9a2a8f2
PKG_MAINTAINER:=Markus Stenberg <fingon@iki.fi>
-diff --git a/Makefile.linux b/Makefile.linux
-index bcca779..7946108 100644
--- a/Makefile.linux
+++ b/Makefile.linux
-@@ -147,7 +147,8 @@ LDLIBS += $(shell $(PKG_CONFIG) --static --libs-only-l libmnl)
+@@ -147,7 +147,8 @@ LDLIBS += $(shell $(PKG_CONFIG) --static
LDLIBS += $(shell $(PKG_CONFIG) --static --libs-only-l libnetfilter_conntrack)
endif # ($(TEST),1)
+++ /dev/null
-diff --git a/netfilter/iptpinhole.c b/netfilter/iptpinhole.c
-index 61ed41b..5cb0e0e 100644
---- a/netfilter/iptpinhole.c
-+++ b/netfilter/iptpinhole.c
-@@ -206,6 +206,8 @@ int add_pinhole(const char * ifname,
-
- e = calloc(1, sizeof(struct ip6t_entry));
- e->ipv6.proto = proto;
-+ if (proto)
-+ e->ipv6.flags |= IP6T_F_PROTO;
-
- if(ifname)
- strncpy(e->ipv6.iniface, ifname, IFNAMSIZ);
-diff --git a/pcpserver.c b/pcpserver.c
-index dec4b58..3cdf460 100644
--- a/pcpserver.c
+++ b/pcpserver.c
-@@ -1020,6 +1020,7 @@ static int CreatePCPMap_FW(pcp_info_t *pcp_msg_info)
- &uid);
+@@ -1004,6 +1004,7 @@ static int CreatePCPMap_NAT(pcp_info_t *
+ timestamp);
if (r < 0)
return PCP_ERR_NO_RESOURCES;
+ pcp_msg_info->ext_port = pcp_msg_info->int_port;
return PCP_SUCCESS;
- #else
- return PCP_ERR_NO_RESOURCES;
+ }
+
+++ /dev/null
---- a/natpmp.c
-+++ b/natpmp.c
-@@ -54,7 +54,7 @@ INLINE void writenu32(uint8_t * p, uint3
- #define WRITENU32(p, n) writenu32(p, n)
- INLINE void writenu16(uint8_t * p, uint16_t n)
- {
-- p[0] = (n < 0xff00) >> 8;
-+ p[0] = (n & 0xff00) >> 8;
- p[1] = n & 0xff;
- }
- #define WRITENU16(p, n) writenu16(p, n)