From aeabc125363303c6fdc58392e76ea356f826b999 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 7 Nov 2018 18:19:09 -0600 Subject: [PATCH] apps/examples/mld: Fix incorrect format of IPv6 Mulitcast address. This resolves the UPD sendto() problem of commit 09691dd48f4930c560feea1326eec68b20322049 that was being blamed on the UDP stack. Nope.. cockpit error. --- examples/mld/Kconfig | 4 ++-- examples/mld/mld_main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/mld/Kconfig b/examples/mld/Kconfig index d826624d9..c539555ea 100644 --- a/examples/mld/Kconfig +++ b/examples/mld/Kconfig @@ -82,10 +82,10 @@ config EXAMPLES_MLD_GRPADDR default 0xE0000181 range 0x0 0xffff ---help--- - Last 16-bits of the group link-local, unicast in host order. Given + Last 16-bits of the group link-local, multicast address in host order. Given CONFIG_EXAMPLES_MLD_GRPADDR=0xXXXX - the full IPv6 link local address will be fe80::00ff:fe00:XXXX (host order) + the full IPv6 link local address will be ff02::0000:0000:XXXX (host order) endif diff --git a/examples/mld/mld_main.c b/examples/mld/mld_main.c index 41e624226..3a08e6f8c 100644 --- a/examples/mld/mld_main.c +++ b/examples/mld/mld_main.c @@ -126,7 +126,7 @@ static const uint16_t g_netmask[8] = static const uint16_t g_grp_addr[8] = { - HTONS(0xfc00), + HTONS(0xff02), HTONS(0), HTONS(0), HTONS(0),