apps/examples/mld: Fix incorrect format of IPv6 Mulitcast address. This resolves the UPD sendto() problem of commit 09691dd48f that was being blamed on the UDP stack. Nope.. cockpit error.

This commit is contained in:
Gregory Nutt 2018-11-07 18:19:09 -06:00
parent 48ebc1377a
commit aeabc12536
2 changed files with 3 additions and 3 deletions

View File

@ -82,10 +82,10 @@ config EXAMPLES_MLD_GRPADDR
default 0xE0000181 default 0xE0000181
range 0x0 0xffff range 0x0 0xffff
---help--- ---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 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 endif

View File

@ -126,7 +126,7 @@ static const uint16_t g_netmask[8] =
static const uint16_t g_grp_addr[8] = static const uint16_t g_grp_addr[8] =
{ {
HTONS(0xfc00), HTONS(0xff02),
HTONS(0), HTONS(0),
HTONS(0), HTONS(0),
HTONS(0), HTONS(0),