From 8603e19516e233e38bae6bb94a1cbffa83953f85 Mon Sep 17 00:00:00 2001 From: likewise Date: Wed, 28 Apr 2004 23:20:18 +0000 Subject: [PATCH] Removed ETHARP_ALWAYS_INSERT. --- src/include/netif/etharp.h | 4 +++- src/netif/etharp.c | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/include/netif/etharp.h b/src/include/netif/etharp.h index 92c9a92c..5a9977ab 100644 --- a/src/include/netif/etharp.h +++ b/src/include/netif/etharp.h @@ -1,5 +1,7 @@ /* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * Copyright (c) 2003-2004 Leon Woestenberg + * Copyright (c) 2003-2004 Axon Digital Design B.V., The Netherlands. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 58d67496..978e6289 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -11,7 +11,9 @@ */ /* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * Copyright (c) 2003-2004 Leon Woestenberg + * Copyright (c) 2003-2004 Axon Digital Design B.V., The Netherlands. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -417,8 +419,8 @@ update_arp_entry(struct netif *netif, struct ip_addr2 *ipaddr, struct eth_addr * LWIP_ASSERT("update_arp_entry: i == ARP_TABLE_SIZE", i == ARP_TABLE_SIZE); LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("update_arp_entry: IP address not yet in table\n")); - /* allowed to insert an entry? */ - if ((ETHARP_ALWAYS_INSERT) || (flags & ARP_INSERT_FLAG)) + /* allowed to insert a new entry? */ + if (flags & ARP_INSERT_FLAG) { LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("update_arp_entry: adding entry to table\n")); /* find an empty or old entry. */