From 67bd1f9b42cf8a6725eae6977c6ec869a93faa41 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 5 Oct 2012 00:29:55 +0200 Subject: [PATCH] updated DEFAULTCONNECTIONSERVICE_MAGICALVALUE for IGDv2 --- miniupnpd/Changelog.txt | 1 + miniupnpd/upnpdescgen.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/miniupnpd/Changelog.txt b/miniupnpd/Changelog.txt index 73bf9fc..7af0ae7 100644 --- a/miniupnpd/Changelog.txt +++ b/miniupnpd/Changelog.txt @@ -1,6 +1,7 @@ $Id: Changelog.txt,v 1.318 2012/10/04 22:11:55 nanard Exp $ 2012/10/04: + updated DEFAULTCONNECTIONSERVICE_MAGICALVALUE for IGDv2 increased default buffer size for HTTP response 2012/10/03: diff --git a/miniupnpd/upnpdescgen.c b/miniupnpd/upnpdescgen.c index 23083c8..d13f74c 100644 --- a/miniupnpd/upnpdescgen.c +++ b/miniupnpd/upnpdescgen.c @@ -1208,7 +1208,11 @@ genEventVars(int * len, const struct serviceDesc * s, const char * servns) case DEFAULTCONNECTIONSERVICE_MAGICALVALUE: /* DefaultConnectionService magical value */ str = strcat_str(str, len, &tmplen, uuidvalue); +#ifdef IGD_V2 + str = strcat_str(str, len, &tmplen, ":WANConnectionDevice:2,urn:upnp-org:serviceId:WANIPConn1"); +#else str = strcat_str(str, len, &tmplen, ":WANConnectionDevice:1,urn:upnp-org:serviceId:WANIPConn1"); +#endif break; default: str = strcat_str(str, len, &tmplen, upnpallowedvalues[v->ieventvalue]);