mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
NET: Add a few missing configuration options to the Kconfig files
This commit is contained in:
@@ -20,6 +20,13 @@ config NET_ARPTAB_SIZE
|
||||
---help---
|
||||
The size of the ARP table (in entries).
|
||||
|
||||
config NET_ARP_MAXAGE
|
||||
int "Max ARP entry age"
|
||||
default 120
|
||||
---help---
|
||||
The maximum age of ARP table entries measured in deciseconds. The
|
||||
default value of 120 corresponds to 20 minutes (BSD default).
|
||||
|
||||
config NET_ARP_IPIN
|
||||
bool "ARP address harvesting"
|
||||
default n
|
||||
|
||||
+3
-1
@@ -125,7 +125,9 @@ void arp_timer(void)
|
||||
for (i = 0; i < CONFIG_NET_ARPTAB_SIZE; ++i)
|
||||
{
|
||||
tabptr = &g_arptable[i];
|
||||
if (tabptr->at_ipaddr != 0 && g_arptime - tabptr->at_time >= UIP_ARP_MAXAGE)
|
||||
|
||||
if (tabptr->at_ipaddr != 0 &&
|
||||
g_arptime - tabptr->at_time >= CONFIG_NET_ARP_MAXAGE)
|
||||
{
|
||||
tabptr->at_ipaddr = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user