]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-dhcp-client: fix RFC number
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 23 Jan 2022 02:15:43 +0000 (11:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 23 Jan 2022 19:18:20 +0000 (04:18 +0900)
src/libsystemd-network/sd-dhcp-client.c

index c33be947b749f37620dff812bdf5ee66de12e7a7..c89d9f3f2bf1cc71e4eaa25aede766d0a468ac0b 100644 (file)
@@ -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