* Add support for multiple network interfaces.

This commit is contained in:
Justin Maggard
2011-05-24 17:20:16 +00:00
parent ffd5df4a58
commit 9806103335
6 changed files with 105 additions and 55 deletions

View File

@ -57,6 +57,7 @@ enum httpCommands {
struct upnphttp {
int socket;
struct in_addr clientaddr; /* client address */
int iface;
int state;
char HttpVer[16];
/* request */
@ -77,11 +78,11 @@ struct upnphttp {
off_t req_RangeEnd;
long int req_chunklen;
uint32_t reqflags;
uint32_t respflags;
/* response */
char * res_buf;
int res_buflen;
int res_buf_alloclen;
uint32_t respflags;
/*int res_contentlen;*/
/*int res_contentoff;*/ /* header length */
LIST_ENTRY(upnphttp) entries;