diff --git a/miniupnpc/CMakeLists.txt b/miniupnpc/CMakeLists.txt index 59212bc..dacb1f6 100644 --- a/miniupnpc/CMakeLists.txt +++ b/miniupnpc/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 2.6) project (miniupnpc C) set (MINIUPNPC_VERSION 1.9) -set (MINIUPNPC_API_VERSION 14) +set (MINIUPNPC_API_VERSION 15) if (NOT CMAKE_BUILD_TYPE) if (WIN32) diff --git a/miniupnpc/Changelog.txt b/miniupnpc/Changelog.txt index 3a634cc..2a51d50 100644 --- a/miniupnpc/Changelog.txt +++ b/miniupnpc/Changelog.txt @@ -1,6 +1,11 @@ $Id: Changelog.txt,v 1.215 2015/10/01 09:26:11 nanard Exp $ miniUPnP client Changelog. +2015/10/08: + Change sameport to localport + see https://github.com/miniupnp/miniupnp/pull/120 + increments API_VERSION to 15 + 2015/09/15: Fix buffer overflow in igd_desc_parse.c/IGDstartelt() Discovered by Aleksandar Nikolic of Cisco Talos diff --git a/miniupnpc/Makefile b/miniupnpc/Makefile index 6b4b15f..8c6f252 100644 --- a/miniupnpc/Makefile +++ b/miniupnpc/Makefile @@ -65,7 +65,7 @@ ifeq (SunOS, $(OS)) endif # APIVERSION is used to build SONAME -APIVERSION = 14 +APIVERSION = 15 SRCS = igd_desc_parse.c miniupnpc.c minixml.c minisoap.c miniwget.c \ upnpc.c upnpcommands.c upnpreplyparse.c testminixml.c \ diff --git a/miniupnpc/apiversions.txt b/miniupnpc/apiversions.txt index dea5dff..daac18f 100644 --- a/miniupnpc/apiversions.txt +++ b/miniupnpc/apiversions.txt @@ -2,6 +2,14 @@ $Id: apiversions.txt,v 1.7 2015/07/23 20:40:08 nanard Exp $ Differences in API between miniUPnPc versions +API version 15 + changed "sameport" argument of upnpDiscover() upnpDiscoverAll() upnpDiscoverDevice() + to "localport". When 0 or 1, behaviour is not changed, but it can take + any other value between 2 and 65535 + Existing programs should be compatible + updated macro : + #define MINIUPNPC_API_VERSION 15 + API version 14 miniupnpc.h add ttl argument to upnpDiscover() upnpDiscoverAll() upnpDiscoverDevice() @@ -9,6 +17,8 @@ miniupnpc.h getDevicesFromMiniSSDPD() : connectToMiniSSDPD() / disconnectFromMiniSSDPD() requestDevicesFromMiniSSDPD() / receiveDevicesFromMiniSSDPD() + updated macro : + #define MINIUPNPC_API_VERSION 14 API version 13 miniupnpc.h: diff --git a/miniupnpc/miniupnpc.h b/miniupnpc/miniupnpc.h index 655e54e..a694978 100644 --- a/miniupnpc/miniupnpc.h +++ b/miniupnpc/miniupnpc.h @@ -20,7 +20,7 @@ /* versions : */ #define MINIUPNPC_VERSION "1.9" -#define MINIUPNPC_API_VERSION 14 +#define MINIUPNPC_API_VERSION 15 /* Source port: Using "1" as an alias for 1900 for backwards compatability