net/arp: Redesign ARP table aging to simplify the net initialization

This commit is contained in:
Xiang Xiao
2018-11-09 13:54:55 -06:00
committed by Gregory Nutt
parent 9d09b5aad7
commit 43706cd797
8 changed files with 62 additions and 351 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ struct arp_entry_s
{
in_addr_t at_ipaddr; /* IP address */
struct ether_addr at_ethaddr; /* Hardware address */
uint8_t at_time; /* Time of last usage */
clock_t at_time; /* Time of last usage */
};
/* Used with the SIOCSARP, SIOCDARP, and SIOCGARP IOCTL commands to set,
+1 -20
View File
@@ -256,7 +256,7 @@ extern "C"
****************************************************************************/
/****************************************************************************
* Name: net_setup
* Name: net_initialize
*
* Description:
* This is called from the OS initialization logic at power-up reset in
@@ -278,25 +278,6 @@ extern "C"
*
****************************************************************************/
void net_setup(void);
/****************************************************************************
* Name: net_initialize
*
* Description:
* This function is called from the OS initialization logic at power-up
* reset AFTER initialization of hardware facilities such as timers and
* interrupts. This logic completes the initialization started by
* net_setup().
*
* Input Parameters:
* None
*
* Returned Value:
* None
*
****************************************************************************/
void net_initialize(void);
/****************************************************************************