From: Yu Watanabe Date: Sun, 23 Jan 2022 02:15:43 +0000 (+0900) Subject: sd-dhcp-client: fix RFC number X-Git-Tag: v251-rc1~471^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a6508f37c9321c93f5d0b0184611d0fd5e85e2fe;p=thirdparty%2Fsystemd.git sd-dhcp-client: fix RFC number --- diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c index c33be947b74..c89d9f3f2bf 100644 --- a/src/libsystemd-network/sd-dhcp-client.c +++ b/src/libsystemd-network/sd-dhcp-client.c @@ -848,7 +848,7 @@ static int client_message_init( secs = ((time_now - client->start_time) / USEC_PER_SEC) ? : 1; packet->dhcp.secs = htobe16(secs); - /* RFC2132 section 4.1 + /* RFC2131 section 4.1 A client that cannot receive unicast IP datagrams until its protocol software has been configured with an IP address SHOULD set the BROADCAST bit in the 'flags' field to 1 in any DHCPDISCOVER or @@ -862,7 +862,7 @@ static int client_message_init( if (client->request_broadcast || client->arp_type != ARPHRD_ETHER) packet->dhcp.flags = htobe16(0x8000); - /* RFC2132 section 4.1.1: + /* RFC2131 section 4.1.1: The client MUST include its hardware address in the ’chaddr’ field, if necessary for delivery of DHCP reply messages. Non-Ethernet interfaces will leave 'chaddr' empty and use the client identifier