Fix compilation error in upnp/src/gena/gena_ctrlpt.c (this is most
likely an error on all platforms). Patch submitted by Chandra (inactiveneurons).
This commit is contained in:
parent
934bd2682f
commit
97af8b6fdb
@ -2,6 +2,12 @@
|
|||||||
Version 1.6.7
|
Version 1.6.7
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2010-09-07 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
|
Fix compilation error in upnp/src/gena/gena_ctrlpt.c (this is most
|
||||||
|
likely an error on all platforms).
|
||||||
|
|
||||||
|
Patch submitted by Chandra (inactiveneurons).
|
||||||
|
|
||||||
2010-09-07 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
2010-09-07 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
Fix compilation error in upnp/src/inc/ssdplib.h when compiling in OS X
|
Fix compilation error in upnp/src/inc/ssdplib.h when compiling in OS X
|
||||||
(the netinet/* headers are not available).
|
(the netinet/* headers are not available).
|
||||||
|
@ -320,18 +320,18 @@ static int gena_subscribe(
|
|||||||
"TIMEOUT: Second-", timeout_str );
|
"TIMEOUT: Second-", timeout_str );
|
||||||
} else {
|
} else {
|
||||||
// subscribe
|
// subscribe
|
||||||
if( dest_url.hostport.IPaddress.ss_family == AF_INET6 ) {
|
if (dest_url.hostport.IPaddress.ss_family == AF_INET6) {
|
||||||
struct sockaddr_in6* DestAddr6 = (struct sockaddr_in6*)&dest_url.hostport.IPaddress;
|
struct sockaddr_in6* DestAddr6 = (struct sockaddr_in6*)&dest_url.hostport.IPaddress;
|
||||||
return_code = http_MakeMessage(
|
return_code = http_MakeMessage(
|
||||||
&request, 1, 1,
|
&request, 1, 1,
|
||||||
"q" "sssdsc" "sc" "sscc",
|
"q" "sssdsc" "sc" "sscc",
|
||||||
HTTPMETHOD_SUBSCRIBE, &dest_url,
|
HTTPMETHOD_SUBSCRIBE, &dest_url,
|
||||||
"CALLBACK: <http://[",
|
"CALLBACK: <http://[",
|
||||||
((IN6_IS_ADDR_LINKLOCAL(DestAddr6))||(strlen(gIF_IPV6_ULA_GUA) == 0 ))?
|
(IN6_IS_ADDR_LINKLOCAL(&DestAddr6->sin6_addr) || strlen(gIF_IPV6_ULA_GUA) == 0) ?
|
||||||
gIF_IPV6 : gIF_IPV6_ULA_GUA,
|
gIF_IPV6 : gIF_IPV6_ULA_GUA,
|
||||||
"]:", LOCAL_PORT_V6, "/>",
|
"]:", LOCAL_PORT_V6, "/>",
|
||||||
"NT: upnp:event",
|
"NT: upnp:event",
|
||||||
"TIMEOUT: Second-", timeout_str );
|
"TIMEOUT: Second-", timeout_str);
|
||||||
} else {
|
} else {
|
||||||
return_code = http_MakeMessage(
|
return_code = http_MakeMessage(
|
||||||
&request, 1, 1,
|
&request, 1, 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user