updated DEFAULTCONNECTIONSERVICE_MAGICALVALUE for IGDv2

This commit is contained in:
Thomas Bernard 2012-10-05 00:29:55 +02:00
parent 5e48745eb3
commit 67bd1f9b42
2 changed files with 5 additions and 0 deletions

View File

@ -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:

View File

@ -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]);