aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorUwe Glaeser <uwe.glaeser@dormakaba.com>2020-06-21 02:56:12 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2020-06-21 02:56:12 +0200
commitfaab906d2867145c81e9bcb1f2bb1f81fd90e734 (patch)
tree9dbcd02c7c92f2e1958720a212d1d7cf49faba2b /networking
parent4789c7cd8152fee53c176e569b022ec4013597a0 (diff)
downloadbusybox-faab906d2867145c81e9bcb1f2bb1f81fd90e734.tar.gz
udhcpc6: use correct multicast MAC
function old new delta static.MAC_DHCP6MCAST_ADDR - 6 +6 Signed-off-by: Uwe Glaeser <uwe.glaeser@dormakaba.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/udhcp/d6_dhcpc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 85c410a7c..fc2d672b7 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -553,11 +553,15 @@ static int d6_mcast_from_client_data_ifindex(struct d6_packet *packet, uint8_t *
0xFF, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02,
};
+ /* IPv6 requires different multicast contents in Ethernet Frame (RFC 2464) */
+ static const uint8_t MAC_DHCP6MCAST_ADDR[6] ALIGN2 = {
+ 0x33, 0x33, 0x00, 0x01, 0x00, 0x02,
+ };
return d6_send_raw_packet(
packet, (end - (uint8_t*) packet),
/*src*/ &client6_data.ll_ip6, CLIENT_PORT6,
- /*dst*/ (struct in6_addr*)FF02__1_2, SERVER_PORT6, MAC_BCAST_ADDR,
+ /*dst*/ (struct in6_addr*)FF02__1_2, SERVER_PORT6, MAC_DHCP6MCAST_ADDR,
client_data.ifindex
);
}