mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
net/arp: clean the arp table when netdev carrier off
Fix the arp address changed if netdev renew, since the arp table should be cleared when the netdev carrier off Signed-off-by: songlinzhang <songlinzhang@xiaomi.com>
This commit is contained in:
@@ -82,9 +82,10 @@
|
||||
|
||||
struct arp_entry_s
|
||||
{
|
||||
in_addr_t at_ipaddr; /* IP address */
|
||||
struct ether_addr at_ethaddr; /* Hardware address */
|
||||
clock_t at_time; /* Time of last usage */
|
||||
in_addr_t at_ipaddr; /* IP address */
|
||||
struct ether_addr at_ethaddr; /* Hardware address */
|
||||
clock_t at_time; /* Time of last usage */
|
||||
FAR struct net_driver_s *at_dev; /* The device driver structure */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user