From 1974bbabe4213ef983b3ec3251853e7162fa911f Mon Sep 17 00:00:00 2001 From: Stephane Lejeune Date: Mon, 11 Jul 2016 17:00:12 +0200 Subject: [PATCH] Use the IANA assigned IPv6 multicast addresses for "All OCF Nodes". MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In order to avoid processing incompatible messages with CoAP application syntax in constrained devices, OCF has registered its own IPv6 multicast address. This patch changes the IPv6 multicast address used for discovery and group messages from “All CoAP Nodes” to “All OCF Nodes”. See http://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xhtml Change-Id: I6ff4069bde6bdcfc40bd5aa216108f2de6a18ed5 Signed-off-by: Stephane Lejeune Reviewed-on: https://gerrit.iotivity.org/gerrit/9289 Tested-by: jenkins-iotivity Reviewed-by: Jon A. Cruz --- resource/csdk/connectivity/src/ip_adapter/caipserver.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resource/csdk/connectivity/src/ip_adapter/caipserver.c b/resource/csdk/connectivity/src/ip_adapter/caipserver.c index 8108328..80bda03 100644 --- a/resource/csdk/connectivity/src/ip_adapter/caipserver.c +++ b/resource/csdk/connectivity/src/ip_adapter/caipserver.c @@ -83,19 +83,19 @@ static struct in_addr IPv4MulticastAddress = { 0 }; #define IPv6_DOMAINS 16 -#define IPv6_MULTICAST_INT "ff01::fd" +#define IPv6_MULTICAST_INT "ff01::158" static struct in6_addr IPv6MulticastAddressInt; -#define IPv6_MULTICAST_LNK "ff02::fd" +#define IPv6_MULTICAST_LNK "ff02::158" static struct in6_addr IPv6MulticastAddressLnk; -#define IPv6_MULTICAST_RLM "ff03::fd" +#define IPv6_MULTICAST_RLM "ff03::158" static struct in6_addr IPv6MulticastAddressRlm; -#define IPv6_MULTICAST_ADM "ff04::fd" +#define IPv6_MULTICAST_ADM "ff04::158" static struct in6_addr IPv6MulticastAddressAdm; -#define IPv6_MULTICAST_SIT "ff05::fd" +#define IPv6_MULTICAST_SIT "ff05::158" static struct in6_addr IPv6MulticastAddressSit; -#define IPv6_MULTICAST_ORG "ff08::fd" +#define IPv6_MULTICAST_ORG "ff08::158" static struct in6_addr IPv6MulticastAddressOrg; -#define IPv6_MULTICAST_GLB "ff0e::fd" +#define IPv6_MULTICAST_GLB "ff0e::158" static struct in6_addr IPv6MulticastAddressGlb; static char *ipv6mcnames[IPv6_DOMAINS] = { -- 2.7.4