static int d6_mcast_from_client_config_ifindex(struct d6_packet *packet, uint8_t *end)
{
+ /* FF02::1:2 is "All_DHCP_Relay_Agents_and_Servers" address */
static const uint8_t FF02__1_2[16] = {
0xFF, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02,
log1("IP %s", inet_ntoa(((struct sockaddr_in *)ifa->ifa_addr)->sin_addr));
}
#endif
+/* RFC 3315
+ * 16. Client Source Address and Interface Selection
+ *
+ * "When a client sends a DHCP message to the
+ * All_DHCP_Relay_Agents_and_Servers address, ... ... The client
+ * MUST use a link-local address assigned to the interface for which it
+ * is requesting configuration information as the source address in the
+ * header of the IP datagram."
+ */
if (ifa->ifa_addr->sa_family == AF_INET6
&& IN6_IS_ADDR_LINKLOCAL(&sip6->sin6_addr)
) {