miniupnpd/upnpglobalvars.c: document BOOTID.UPNP.ORG and CONFIGID.UPNP.ORG

This commit is contained in:
Thomas Bernard 2014-12-10 10:03:13 +01:00
parent e283270274
commit 2d52890608
1 changed files with 16 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $Id: upnpglobalvars.c,v 1.35 2014/03/10 11:04:53 nanard Exp $ */
/* $Id: upnpglobalvars.c,v 1.38 2014/12/10 09:02:15 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2014 Thomas Bernard
@ -119,6 +119,19 @@ struct in6_addr ipv6_bind_addr;
const char * minissdpdsocketpath = "/var/run/minissdpd.sock";
/* BOOTID.UPNP.ORG and CONFIGID.UPNP.ORG */
unsigned int upnp_bootid = 1;
unsigned int upnp_configid = 1337;
/* See UPnP Device Architecture v1.1 section 1.2 Advertisement :
* The field value of the BOOTID.UPNP.ORG header field MUST be increased
* each time a device (re)joins the network and sends an initial announce
* (a "reboot" in UPnP terms), or adds a UPnP-enabled interface.
* Unless the device explicitly announces a change in the BOOTID.UPNP.ORG
* field value using an SSDP message, as long as the device remains
* continuously available in the network, the same BOOTID.UPNP.ORG field
* value MUST be used in all repeat announcements, search responses,
* update messages and eventually bye-bye messages. */
unsigned int upnp_bootid = 1; /* BOOTID.UPNP.ORG */
/* The field value of the CONFIGID.UPNP.ORG header field identifies the
* current set of device and service descriptions; control points can
* parse this header field to detect whether they need to send new
* description query messages. */
unsigned int upnp_configid = 1337; /* CONFIGID.UPNP.ORG */