Use UPnP/1.1 in SERVER: string as required in UDA 1.1

UDA = UPnP Device architecture 1.1
This commit is contained in:
Thomas Bernard 2012-04-06 19:28:05 +02:00
parent 6d32d69608
commit c28d256b30
2 changed files with 13 additions and 4 deletions

View File

@ -1,6 +1,7 @@
$Id: Changelog.txt,v 1.266 2012/04/06 15:27:20 nanard Exp $ $Id: Changelog.txt,v 1.267 2012/04/06 17:24:36 nanard Exp $
2012/04/06: 2012/04/06:
Use UPnP/1.1 in SERVER: string as required in UPnP Device architecture 1.1.
Allow LAN interface to be given as interface names, instead of interface Allow LAN interface to be given as interface names, instead of interface
IP addresses. It will allow IPv6 operations. IP addresses. It will allow IPv6 operations.
fix linux/getifstats.c when bitrate is unknown fix linux/getifstats.c when bitrate is unknown

View File

@ -1,7 +1,7 @@
/* $Id: upnphttp.h,v 1.26 2012/02/07 00:21:54 nanard Exp $ */ /* $Id: upnphttp.h,v 1.29 2012/04/06 17:20:03 nanard Exp $ */
/* MiniUPnP project /* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2011 Thomas Bernard * (c) 2006-2012 Thomas Bernard
* This software is subject to the conditions detailed * This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */ * in the LICENCE file provided within the distribution */
@ -13,8 +13,16 @@
#include "config.h" #include "config.h"
#if 0
/* according to "UPnP Device Architecture 1.0" */
#define UPNP_VERSION_STRING "UPnP/1.0"
#else
/* according to "UPnP Device Architecture 1.1" */
#define UPNP_VERSION_STRING "UPnP/1.1"
#endif
/* server: HTTP header returned in all HTTP responses : */ /* server: HTTP header returned in all HTTP responses : */
#define MINIUPNPD_SERVER_STRING OS_VERSION " UPnP/1.0 MiniUPnPd/" MINIUPNPD_VERSION #define MINIUPNPD_SERVER_STRING OS_VERSION " " UPNP_VERSION_STRING " MiniUPnPd/" MINIUPNPD_VERSION
/* /*
states : states :