Forward port of svn rev. 574:
* gena_subscribe(): Fix for IPV6 ULA/GUA issues. Patch submitted by Ronan Menard. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@575 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
parent
bc724a8073
commit
9f7936781e
@ -211,6 +211,11 @@ Version 1.8.0
|
||||
Version 1.6.7
|
||||
*******************************************************************************
|
||||
|
||||
2010-08-21 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||
* gena_subscribe(): Fix for IPV6 ULA/GUA issues.
|
||||
|
||||
Patch submitted by Ronan Menard.
|
||||
|
||||
2010-08-21 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||
* SOCKET ssdpSock6UlaGua: created variable for later use.
|
||||
|
||||
|
@ -317,11 +317,15 @@ static int gena_subscribe(
|
||||
} else {
|
||||
// subscribe
|
||||
if( dest_url.hostport.IPaddress.ss_family == AF_INET6 ) {
|
||||
struct sockaddr_in6* DestAddr6 = (struct sockaddr_in6*)&dest_url.hostport.IPaddress;
|
||||
return_code = http_MakeMessage(
|
||||
&request, 1, 1,
|
||||
"q" "sssdsc" "sc" "sscc",
|
||||
HTTPMETHOD_SUBSCRIBE, &dest_url,
|
||||
"CALLBACK: <http://[", gIF_IPV6, "]:", LOCAL_PORT_V6, "/>",
|
||||
"CALLBACK: <http://[",
|
||||
((IN6_IS_ADDR_LINKLOCAL(DestAddr6))||(strlen(gIF_IPV6_ULA_GUA) == 0 ))?
|
||||
gIF_IPV6 : gIF_IPV6_ULA_GUA,
|
||||
"]:", LOCAL_PORT_V6, "/>",
|
||||
"NT: upnp:event",
|
||||
"TIMEOUT: Second-", timeout_str );
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user