This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 8fef4b9a4b1 net/arp: Give the unit of the ARP entry ages as 10 seconds.
8fef4b9a4b1 is described below
commit 8fef4b9a4b1d10667a2a9f74fa11b0540e40caa2
Author: Marco Casaroli <[email protected]>
AuthorDate: Sun Nov 1 09:33:59 2026 +0100
net/arp: Give the unit of the ARP entry ages as 10 seconds.
The code converts CONFIG_NET_ARP_MAXAGE and
CONFIG_NET_ARP_MAXAGE_UNREACHABLE with SEC2TICK(10 * value): the unit
is 10 seconds. The help texts said deciseconds, and the comment in
netconfig.h said tenths of seconds, 100 times too small. The example
in the same texts (120 is 20 minutes) already used 10 seconds.
Correct the texts. The code does not change.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
include/nuttx/net/netconfig.h | 2 +-
net/arp/Kconfig | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/nuttx/net/netconfig.h b/include/nuttx/net/netconfig.h
index 77068ac4962..af33078426b 100644
--- a/include/nuttx/net/netconfig.h
+++ b/include/nuttx/net/netconfig.h
@@ -641,7 +641,7 @@
#endif
#ifndef CONFIG_NET_ARP_MAXAGE
-/* The maximum age of ARP table entries measured in 10ths of seconds.
+/* The maximum age of ARP table entries in units of 10 seconds.
*
* An CONFIG_NET_ARP_MAXAGE of 120 corresponds to 20 minutes (BSD
* default).
diff --git a/net/arp/Kconfig b/net/arp/Kconfig
index 96524ae5c48..5d71d1556d1 100644
--- a/net/arp/Kconfig
+++ b/net/arp/Kconfig
@@ -25,16 +25,16 @@ config NET_ARP_MAXAGE
int "Max ARP entry age"
default 120
---help---
- The maximum age of ARP table entries measured in deciseconds.
The
+ The maximum age of ARP table entries in units of 10 seconds.
The
default value of 120 corresponds to 20 minutes (BSD default).
config NET_ARP_MAXAGE_UNREACHABLE
int "Max unreachable ARP entry age"
default 1
---help---
- The maximum age of unreachable ARP table entries measured in
- deciseconds. During unreachable period not send a retry ARP
- request for the same destination.
+ The maximum age of unreachable ARP table entries in units of 10
+ seconds. The default value of 1 corresponds to 10 seconds.
During
+ this time, no new ARP request is sent for the same destination.
config NET_ARP_IPIN
bool "ARP address harvesting"