From 0d75e8b7973353f1d034b97bebfd4d2c13a9f5d6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 13 Apr 2019 19:43:15 +0200 Subject: udhcpc6: add a few comments, no code changes. Signed-off-by: Denys Vlasenko --- networking/udhcp/d6_socket.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'networking/udhcp/d6_socket.c') diff --git a/networking/udhcp/d6_socket.c b/networking/udhcp/d6_socket.c index 6ad53a9c2..fe46e5f1d 100644 --- a/networking/udhcp/d6_socket.c +++ b/networking/udhcp/d6_socket.c @@ -38,6 +38,15 @@ int FAST_FUNC d6_read_interface(const char *interface, int *ifindex, struct in6_ 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) ) { -- cgit v1.2.3