From ced453a72b779cf2a37827af738934e00f4dd8b9 Mon Sep 17 00:00:00 2001 From: likewise Date: Wed, 8 Jan 2003 11:03:54 +0000 Subject: [PATCH] Moved ETHARP_ALWAYS_INSERT switch to lwipopts.h --- proj/minimal/lwipopts.h | 9 +++++++++ proj/unixlib/lwipopts.h | 9 +++++++++ proj/unixsim/lwipopts.h | 9 +++++++++ src/netif/etharp.c | 13 ++----------- 4 files changed, 29 insertions(+), 11 deletions(-) diff --git a/proj/minimal/lwipopts.h b/proj/minimal/lwipopts.h index ae52486d..d2903f01 100644 --- a/proj/minimal/lwipopts.h +++ b/proj/minimal/lwipopts.h @@ -121,6 +121,15 @@ a lot of data that needs to be copied, this should be set high. */ /* ---------- ARP options ---------- */ #define ARP_TABLE_SIZE 10 #define ARP_QUEUEING 0 +/** + * - If enabled, cache entries are generated for every kind of ARP traffic or + * broadcast IP traffic. This enhances behaviour for sending to a dynamic set + * of hosts, for example if acting as a gateway. + * - If disabled, cache entries are generated only for IP destination addresses + * in use by lwIP or applications. This enhances performance if sending to a small, + * reasonably static number of hosts. Typically for embedded devices. + */ +#define ETHARP_ALWAYS_INSERT 0 /* ---------- IP options ---------- */ /* Define IP_FORWARD to 1 if you wish to have the ability to forward diff --git a/proj/unixlib/lwipopts.h b/proj/unixlib/lwipopts.h index d0e06aef..32899952 100644 --- a/proj/unixlib/lwipopts.h +++ b/proj/unixlib/lwipopts.h @@ -124,6 +124,15 @@ a lot of data that needs to be copied, this should be set high. */ /* ---------- ARP options ---------- */ #define ARP_TABLE_SIZE 10 #define ARP_QUEUEING 1 +/** + * - If enabled, cache entries are generated for every kind of ARP traffic or + * broadcast IP traffic. This enhances behaviour for sending to a dynamic set + * of hosts, for example if acting as a gateway. + * - If disabled, cache entries are generated only for IP destination addresses + * in use by lwIP or applications. This enhances performance if sending to a small, + * reasonably static number of hosts. Typically for embedded devices. + */ +#define ETHARP_ALWAYS_INSERT 1 /* ---------- IP options ---------- */ /* Define IP_FORWARD to 1 if you wish to have the ability to forward diff --git a/proj/unixsim/lwipopts.h b/proj/unixsim/lwipopts.h index f8b0fd6f..0192d792 100644 --- a/proj/unixsim/lwipopts.h +++ b/proj/unixsim/lwipopts.h @@ -122,6 +122,15 @@ a lot of data that needs to be copied, this should be set high. */ /* ---------- ARP options ---------- */ #define ARP_TABLE_SIZE 10 #define ARP_QUEUEING 1 +/** + * - If enabled, cache entries are generated for every kind of ARP traffic or + * broadcast IP traffic. This enhances behaviour for sending to a dynamic set + * of hosts, for example if acting as a gateway. + * - If disabled, cache entries are generated only for IP destination addresses + * in use by lwIP or applications. This enhances performance if sending to a small, + * reasonably static number of hosts. Typically for embedded devices. + */ +#define ETHARP_ALWAYS_INSERT 1 /* ---------- IP options ---------- */ diff --git a/src/netif/etharp.c b/src/netif/etharp.c index b53e4356..8f241e42 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -3,8 +3,8 @@ * Address Resolution Protocol module for IP over Ethernet * * $Log: etharp.c,v $ - * Revision 1.20 2003/01/08 10:49:16 likewise - * Added check if ARP_QUEUEING is 1 for a queueing related debug statement. + * Revision 1.21 2003/01/08 11:04:36 likewise + * Moved ETHARP_ALWAYS_INSERT switch to lwipopts.h * * Revision 1.19 2003/01/08 10:09:43 likewise * Updated lwIP module copyright years to include 2003. Committers must check theirs. @@ -103,15 +103,6 @@ RFC 3220 4.6 IP Mobility Support for IPv4 January 2002 /** the time an ARP entry stays pending after first request, (2 * 10) seconds = 20 seconds. */ #define ARP_MAXPENDING 2 -/** - * - * - If enabled, cache entries are generated for every kind of ARP/IP traffic. - * This enhances behaviour for sending to a dynamic set of hosts, for example - * if acting as a gateway. - * - If disabled, cache entries are generated only for IP destination addresses - * in use by lwIP or applications. This enhances performance if sending to a small, - * reasonably static number of hosts. Typically for embedded devices. - */ #ifndef ETHARP_ALWAYS_INSERT # define ETHARP_ALWAYS_INSERT 1 #endif