]>
Commit | Line | Data |
---|---|---|
f529e0ab JB |
1 | --- dante-1.3.2/miniupnpc.m4.orig 2011-07-15 14:03:48.000000000 +0200 |
2 | +++ dante-1.3.2/miniupnpc.m4 2013-02-05 16:34:47.963810307 +0100 | |
3 | @@ -20,7 +20,7 @@ | |
4 | LIBS=$oLIBS | |
5 | fi | |
6 | if test x"${have_libminiupnp}" = xt; then | |
7 | - AC_MSG_CHECKING([for miniupnpc version >= 1.4]) | |
8 | + AC_MSG_CHECKING([for miniupnpc version >= 1.6]) | |
9 | AC_TRY_COMPILE([ | |
10 | #include <stdio.h> | |
11 | #include <miniupnpc/miniupnpc.h> | |
12 | @@ -37,7 +37,7 @@ | |
13 | (void)UPNP_GetIGDFromUrl(str, UPNPUrls, IGDdatas, str, 0); | |
14 | (void)UPNP_GetValidIGD(UPNPDev, UPNPUrls, IGDdatas, str, 0); | |
15 | (void)UPNP_GetExternalIPAddress(str, str, str); | |
16 | - (void)UPNP_AddPortMapping(str, str, str, str, str, str, str, str); | |
17 | + (void)UPNP_AddPortMapping(str, str, str, str, str, str, str, str, str); | |
18 | (void)UPNP_DeletePortMapping(str, str, str, str, str);], | |
19 | [AC_MSG_RESULT(yes) | |
20 | AC_DEFINE(HAVE_LIBMINIUPNP, 1, [UPNP support library]) | |
21 | --- dante-1.3.2/lib/upnp.c.orig 2011-07-21 16:09:19.000000000 +0200 | |
22 | +++ dante-1.3.2/lib/upnp.c 2013-02-05 16:48:04.403793706 +0100 | |
23 | @@ -111,7 +111,7 @@ | |
24 | slog(LOG_DEBUG, "%s: doing upnp discovery on interface of addr %s (%s)", | |
25 | function, addrstring, gwaddr2string(gw, gwstring, sizeof(gwstring))); | |
26 | ||
27 | - if ((dev = upnpDiscover(UPNP_DISCOVERYTIME_MS, addrstring, NULL, 0)) | |
28 | + if ((dev = upnpDiscover(UPNP_DISCOVERYTIME_MS, addrstring, NULL, 0, 0, NULL)) | |
29 | == NULL) { | |
30 | slog(LOG_DEBUG, "no upnp devices found"); | |
31 | ||
32 | @@ -477,7 +477,7 @@ | |
33 | str2upper(protocol); /* seems to fail if not. */ | |
34 | if ((rc = UPNP_AddPortMapping(state->upnp.controlurl, | |
35 | state->upnp.servicetype, strport, strport, straddr, buf, protocol, | |
36 | - NULL)) != UPNPCOMMAND_SUCCESS) { | |
37 | + NULL, NULL)) != UPNPCOMMAND_SUCCESS) { | |
38 | swarnx("%s: UPNP_AddPortMapping() failed: %s", | |
39 | function, strupnperror(rc)); | |
40 |