--- embedaddon/miniupnpd/upnphttp.h 2012/02/21 23:16:02 1.1.1.1 +++ embedaddon/miniupnpd/upnphttp.h 2012/05/29 12:55:57 1.1.1.2 @@ -1,4 +1,4 @@ -/* $Id: upnphttp.h,v 1.1.1.1 2012/02/21 23:16:02 misho Exp $ */ +/* $Id: upnphttp.h,v 1.1.1.2 2012/05/29 12:55:57 misho Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2011 Thomas Bernard @@ -14,7 +14,7 @@ #include "config.h" /* server: HTTP header returned in all HTTP responses : */ -#define MINIUPNPD_SERVER_STRING OS_VERSION " UPnP/1.0 MiniUPnPd/1.5" +#define MINIUPNPD_SERVER_STRING OS_VERSION " UPnP/1.0 MiniUPnPd/" MINIUPNPD_VERSION /* states : @@ -34,6 +34,10 @@ enum httpCommands { struct upnphttp { int socket; struct in_addr clientaddr; /* client address */ +#ifdef ENABLE_IPV6 + int ipv6; + struct in6_addr clientaddr_v6; +#endif int state; char HttpVer[16]; /* request */ @@ -51,7 +55,7 @@ struct upnphttp { const char * req_SID; /* For UNSUBSCRIBE */ int req_SIDLen; #endif - int respflags; + int respflags; /* see FLAG_* constants below */ /* response */ char * res_buf; int res_buflen; @@ -61,9 +65,12 @@ struct upnphttp { LIST_ENTRY(upnphttp) entries; }; +/* Include the "Timeout:" header in response */ #define FLAG_TIMEOUT 0x01 +/* Include the "SID:" header in response */ #define FLAG_SID 0x02 +/* If set, the Content-Type is set to text/xml, otherwise it is text/xml */ #define FLAG_HTML 0x80 /* New_upnphttp() */