From: Thiago Macieira Date: Wed, 2 Nov 2016 16:18:47 +0000 (-0700) Subject: Update the list of IPv6 multicast groups we join X-Git-Tag: 1.2.1~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bb09598dc3a52d97d0f6709afdfafd3fa2cbfc5;p=platform%2Fupstream%2Fiotivity.git Update the list of IPv6 multicast groups we join According to OCF internal discussions, the upcoming OIC 1.1 spec will have an errata that specifies that devices should always join the OCF group on scopes 2, 3 and 5, and that devices connected to WiFi and/or Ethernet should send discoveries on scope 2. IoTivity already sends on scope 2 only; this patch merely enables joining on the other scopes. Change-Id: Ic46ff326a6ba46bc877cfffd1483478d310e719b Signed-off-by: Thiago Macieira Reviewed-on: https://gerrit.iotivity.org/gerrit/13963 Tested-by: jenkins-iotivity Reviewed-by: Dave Thaler Reviewed-by: Uze Choi Reviewed-by: Ashok Babu Channa --- diff --git a/resource/csdk/connectivity/src/ip_adapter/caipserver.c b/resource/csdk/connectivity/src/ip_adapter/caipserver.c index aba261c..62efe49 100644 --- a/resource/csdk/connectivity/src/ip_adapter/caipserver.c +++ b/resource/csdk/connectivity/src/ip_adapter/caipserver.c @@ -1077,17 +1077,17 @@ static void applyMulticastToInterface6(uint32_t ifindex) } //applyMulticast6(caglobals.ip.m6.fd, &IPv6MulticastAddressInt, ifindex); applyMulticast6(caglobals.ip.m6.fd, &IPv6MulticastAddressLnk, ifindex); - //applyMulticast6(caglobals.ip.m6.fd, &IPv6MulticastAddressRlm, ifindex); + applyMulticast6(caglobals.ip.m6.fd, &IPv6MulticastAddressRlm, ifindex); //applyMulticast6(caglobals.ip.m6.fd, &IPv6MulticastAddressAdm, ifindex); - //applyMulticast6(caglobals.ip.m6.fd, &IPv6MulticastAddressSit, ifindex); + applyMulticast6(caglobals.ip.m6.fd, &IPv6MulticastAddressSit, ifindex); //applyMulticast6(caglobals.ip.m6.fd, &IPv6MulticastAddressOrg, ifindex); //applyMulticast6(caglobals.ip.m6.fd, &IPv6MulticastAddressGlb, ifindex); //applyMulticast6(caglobals.ip.m6s.fd, &IPv6MulticastAddressInt, ifindex); applyMulticast6(caglobals.ip.m6s.fd, &IPv6MulticastAddressLnk, ifindex); - //applyMulticast6(caglobals.ip.m6s.fd, &IPv6MulticastAddressRlm, ifindex); + applyMulticast6(caglobals.ip.m6s.fd, &IPv6MulticastAddressRlm, ifindex); //applyMulticast6(caglobals.ip.m6s.fd, &IPv6MulticastAddressAdm, ifindex); - //applyMulticast6(caglobals.ip.m6s.fd, &IPv6MulticastAddressSit, ifindex); + applyMulticast6(caglobals.ip.m6s.fd, &IPv6MulticastAddressSit, ifindex); //applyMulticast6(caglobals.ip.m6s.fd, &IPv6MulticastAddressOrg, ifindex); //applyMulticast6(caglobals.ip.m6s.fd, &IPv6MulticastAddressGlb, ifindex); }