/[lwip]/lwip/src/include/lwip/opt.h
ViewVC logotype

Diff of /lwip/src/include/lwip/opt.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by likewise, Mon Mar 10 16:08:52 2003 UTC revision 1.8 by likewise, Tue Mar 11 13:57:25 2003 UTC
# Line 33  Line 33 
33  #define __LWIP_OPT_H__  #define __LWIP_OPT_H__
34    
35  #include "lwip/debug.h"  #include "lwip/debug.h"
36  /* Include user options which override defaults */  /* Include user defined options first */
37  #include "lwipopts.h"  #include "lwipopts.h"
38    
39  /* Define default values for all configuration parameters. */  /* Define default values for unconfigured parameters. */
40    
41  /* Platform specific locking */  /* Platform specific locking */
42    
# Line 146  a lot of data that needs to be copied, t Line 146  a lot of data that needs to be copied, t
146    
147    
148  /* ---------- ARP options ---------- */  /* ---------- ARP options ---------- */
149    
150    /** Number of active hardware address, IP address pairs cached */
151  #ifndef ARP_TABLE_SIZE  #ifndef ARP_TABLE_SIZE
152  #define ARP_TABLE_SIZE 10  #define ARP_TABLE_SIZE 10
153  #endif  #endif
154    
155    /**
156     * If enabled, outgoing packets are queued during hardware address
157     * resolution. The etharp.c implementation queues 1 packet only.
158     */
159  #ifndef ARP_QUEUEING  #ifndef ARP_QUEUEING
160  #define ARP_QUEUEING 1  #define ARP_QUEUEING 1
161  #endif  #endif
162  /**  /**
163   * - If enabled, cache entries are generated for every kind of ARP traffic or   * If defined to 1, cache entries are updated or added for every kind of ARP traffic
164   * broadcast IP traffic. This enhances behaviour for sending to a dynamic set   * or broadcast IP traffic. Recommended for routers.
165   * of hosts, for example if acting as a gateway.   * If defined to 0, only existing cache entries are updated. Entries are added when
166   * - If disabled, cache entries are generated only for IP destination addresses   * lwIP is sending to them. Recommended for embedded devices.
  * in use by lwIP or applications. This enhances performance if sending to a small,  
  * reasonably static number of hosts. Typically for embedded devices.  
167   */   */
   
168  #ifndef ETHARP_ALWAYS_INSERT  #ifndef ETHARP_ALWAYS_INSERT
169  #define ETHARP_ALWAYS_INSERT 1  #define ETHARP_ALWAYS_INSERT 1
170  #endif  #endif
171    
   
172  /* ---------- IP options ---------- */  /* ---------- IP options ---------- */
173  /* Define IP_FORWARD to 1 if you wish to have the ability to forward  /* Define IP_FORWARD to 1 if you wish to have the ability to forward
174     IP packets across network interfaces. If you are going to run lwIP     IP packets across network interfaces. If you are going to run lwIP
# Line 181  a lot of data that needs to be copied, t Line 183  a lot of data that needs to be copied, t
183  #define IP_OPTIONS              1  #define IP_OPTIONS              1
184  #endif  #endif
185    
186  /* IP reassembly and segmentation.These are orthogonal even  /** IP reassembly and segmentation. Even if they both deal with IP
187   * if they both deal with IP fragments */   *  fragments, note that these are orthogonal, one dealing with incoming
188     *  packets, the other with outgoing packets
189     */
190    
191    /** Reassemble incoming fragmented IP packets */
192  #ifndef IP_REASSEMBLY  #ifndef IP_REASSEMBLY
193  #define IP_REASSEMBLY     1  #define IP_REASSEMBLY     1
194  #endif  #endif
195    
196    /** Fragment outgoing IP packets if their size exceeds MTU */
197  #ifndef IP_FRAG  #ifndef IP_FRAG
198  #define IP_FRAG           1  #define IP_FRAG           1
199  #endif  #endif

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26