From: Steven Barth Date: Tue, 2 Dec 2014 14:16:39 +0000 (+0100) Subject: miniupnpd: bump to 1.9.20141118 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=cd8234f10c3714058dc10c6bac9d8e7568dc3e13;p=lede-routing%2F.git miniupnpd: bump to 1.9.20141118 Signed-off-by: Steven Barth --- diff --git a/miniupnpd/Makefile b/miniupnpd/Makefile index 2f05ec8..ceed43c 100644 --- a/miniupnpd/Makefile +++ b/miniupnpd/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=miniupnpd -PKG_VERSION:=1.9 +PKG_VERSION:=1.9.20141128 PKG_RELEASE:=1 PKG_SOURCE_URL:=http://miniupnp.free.fr/files PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_MD5SUM:=9151502f84f130b0ef1245ac938c33f9 +PKG_MD5SUM:=a9e71952bebb80e643a9c7a0e2c58faa PKG_MAINTAINER:=Markus Stenberg PKG_LICENSE:=BSD-3-Clause diff --git a/miniupnpd/files/miniupnpd.init b/miniupnpd/files/miniupnpd.init index 9ac6de2..79def5d 100644 --- a/miniupnpd/files/miniupnpd.init +++ b/miniupnpd/files/miniupnpd.init @@ -1,5 +1,5 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2006-2011 OpenWrt.org +# Copyright (C) 2006-2014 OpenWrt.org START=95 STOP=15 diff --git a/miniupnpd/patches/101-pcp-third-party.patch b/miniupnpd/patches/101-pcp-third-party.patch deleted file mode 100644 index b66621d..0000000 --- a/miniupnpd/patches/101-pcp-third-party.patch +++ /dev/null @@ -1,75 +0,0 @@ -From 27d4d10a3ed3a4d87941247ed73bcb67c68b2bb9 Mon Sep 17 00:00:00 2001 -From: Thomas Bernard -Date: Thu, 30 Oct 2014 20:37:35 +0100 -Subject: [PATCH] miniupnpd.c: fix PCP third party mode (in IPv4) - -fixes problem introduced in commit 16389fda3c5313bffc83fb6594f5bb5872e37e5e ---- - miniupnpd.c | 38 +++++++++++++++++++++++++++----------- - 1 file changed, 27 insertions(+), 11 deletions(-) - -diff --git a/miniupnpd.c b/miniupnpd.c -index 6468075..06bcae2 100644 ---- a/miniupnpd.c -+++ b/miniupnpd.c -@@ -2133,30 +2133,46 @@ main(int argc, char * * argv) - msg_buff, sizeof(msg_buff)); - if (len < 1) - continue; -+#ifdef ENABLE_PCP -+ if (msg_buff[0]==0) { /* version equals to 0 -> means NAT-PMP */ -+ /* Check if the packet is coming from a LAN to enforce RFC6886 : -+ * The NAT gateway MUST NOT accept mapping requests destined to the NAT -+ * gateway's external IP address or received on its external network -+ * interface. Only packets received on the internal interface(s) with a -+ * destination address matching the internal address(es) of the NAT -+ * gateway should be allowed. */ -+ /* TODO : move to ProcessIncomingNATPMPPacket() ? */ -+ lan_addr = get_lan_for_peer((struct sockaddr *)&senderaddr); -+ if(lan_addr == NULL) { -+ char sender_str[64]; -+ sockaddr_to_string((struct sockaddr *)&senderaddr, sender_str, sizeof(sender_str)); -+ syslog(LOG_WARNING, "NAT-PMP packet sender %s not from a LAN, ignoring", -+ sender_str); -+ continue; -+ } -+ ProcessIncomingNATPMPPacket(snatpmp[i], msg_buff, len, -+ &senderaddr); -+ } else { /* everything else can be PCP */ -+ ProcessIncomingPCPPacket(snatpmp[i], msg_buff, len, -+ (struct sockaddr *)&senderaddr, NULL); -+ } -+ -+#else - /* Check if the packet is coming from a LAN to enforce RFC6886 : - * The NAT gateway MUST NOT accept mapping requests destined to the NAT - * gateway's external IP address or received on its external network - * interface. Only packets received on the internal interface(s) with a - * destination address matching the internal address(es) of the NAT - * gateway should be allowed. */ -+ /* TODO : move to ProcessIncomingNATPMPPacket() ? */ - lan_addr = get_lan_for_peer((struct sockaddr *)&senderaddr); - if(lan_addr == NULL) { - char sender_str[64]; - sockaddr_to_string((struct sockaddr *)&senderaddr, sender_str, sizeof(sender_str)); -- syslog(LOG_WARNING, "NAT-PMP/PCP packet sender %s not from a LAN, ignoring", -+ syslog(LOG_WARNING, "NAT-PMP packet sender %s not from a LAN, ignoring", - sender_str); - continue; - } --#ifdef ENABLE_PCP -- if (msg_buff[0]==0) { /* version equals to 0 -> means NAT-PMP */ -- ProcessIncomingNATPMPPacket(snatpmp[i], msg_buff, len, -- &senderaddr); -- } else { /* everything else can be PCP */ -- ProcessIncomingPCPPacket(snatpmp[i], msg_buff, len, -- (struct sockaddr *)&senderaddr, NULL); -- } -- --#else - ProcessIncomingNATPMPPacket(snatpmp[i], msg_buff, len, &senderaddr); - #endif - } --- -2.1.0 -