Skip to content

Commit b933bf5

Browse files
ofirshejhedberg
authored andcommitted
net: dhcpv4: fix incorrect RFC2131 section reference to 4.4.1
Corrected the RFC2131 section reference in DHCPv4 comments and help text. The random delay before sending the initial DHCPDISCOVER message is defined in Section 4.4.1 of RFC2131, not in 4.1.1 as previously stated. Signed-off-by: Ofir Shemesh <[email protected]>
1 parent 9e6256e commit b933bf5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

subsys/net/lib/dhcpv4/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ config NET_DHCPV4_INITIAL_DELAY_MAX
2525
default 10
2626
range 2 10
2727
help
28-
As per RFC2131 4.1.1, we wait a random period between
28+
As per RFC2131 4.4.1, we wait a random period between
2929
1 and 10 seconds before sending the initial discover.
3030

3131
config NET_DHCPV4_OPTION_CALLBACKS

subsys/net/lib/dhcpv4/dhcpv4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ static void dhcpv4_start_internal(struct net_if *iface, bool first_start)
18331833

18341834
/* Use default */
18351835
if (first_start) {
1836-
/* RFC2131 4.1.1 requires we wait a random period
1836+
/* RFC2131 4.4.1 requires we wait a random period
18371837
* between 1 and 10 seconds before sending the initial
18381838
* discover.
18391839
*/

subsys/net/lib/dhcpv4/dhcpv4_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct dhcp_msg {
102102
* initial DISCOVER message. MAx value is defined with
103103
* CONFIG_NET_DHCPV4_INITIAL_DELAY_MAX. Default max value
104104
* should be 10.
105-
* RFC2131 4.1.1
105+
* RFC2131 4.4.1
106106
*/
107107
#define DHCPV4_INITIAL_DELAY_MIN 1
108108

0 commit comments

Comments
 (0)