From 8558fa0bcf60a8c42acdfa779eb164ef1a96e8d3 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Wed, 26 Feb 2014 21:51:56 +0100 Subject: [PATCH] etharp_entry::ctime must be u16_t after changing ARP_TMR_INTERVAL from 5 seconds to 1 second when fixing bug #34682 --- src/netif/etharp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 87c423e7..a3aff06a 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -77,7 +77,7 @@ const struct eth_addr ethzero = {{0,0,0,0,0,0}}; * for ARP_TMR_INTERVAL = 1000, this is * (60 * 20) seconds = 20 minutes. */ -#define ARP_MAXAGE (60*20) +#define ARP_MAXAGE 1200 /** Re-request a used ARP entry 1 minute before it would expire to prevent * breaking a steadily used connection because the ARP entry timed out. */ #define ARP_AGE_REREQUEST_USED (ARP_MAXAGE - 60) @@ -114,8 +114,8 @@ struct etharp_entry { ip_addr_t ipaddr; struct netif *netif; struct eth_addr ethaddr; + u16_t ctime; u8_t state; - u8_t ctime; }; static struct etharp_entry arp_table[ARP_TABLE_SIZE];