Commit 8866bde1 authored by Veeraj Khokale's avatar Veeraj Khokale Committed by Uze Choi

[IOT-2483, 2529] Incorrect IPv6 addr in endpoints

As per RFC 6874, the zone id of the ipv6 address
in a URI should be preceded by %25 and not just %.
Make this change while creating the ipv6 endpoint
payload.

Change-Id: I2e3ec53b16212d374c7ab2ecf6bfd5700c4e62ce
Signed-off-by: default avatarVeeraj Khokale <veeraj.sk@samsung.com>
parent 1d03cc5b
......@@ -1475,7 +1475,7 @@ OCStackResult OCMapZoneIdToLinkLocalEndpoint(OCDiscoveryPayload *payload, uint32
{
assert(zoneId != NULL);
// put zoneId to end of addr
OICStrcat(eps->addr, OC_MAX_ADDR_STR_SIZE, "%");
OICStrcat(eps->addr, OC_MAX_ADDR_STR_SIZE, "%25");
OICStrcat(eps->addr, OC_MAX_ADDR_STR_SIZE, zoneId);
OICFree(zoneId);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment