1. Reduce the size of the heap memory to reduce the amount of memory usage 2. Change the TCP segment size 3. Disable UDP + DHCP + DNS 4. Change the configurations of the TCP/IP thread

Dependencies:   Socket lwip-eth lwip-sys lwip

Dependents:   aos_mbed

Fork of EthernetInterface by mbed official

lwipopts_conf.h

Committer:
aos
Date:
2014-02-13
Revision:
38:a54b45e2eafe
Parent:
36:5118a7657c6d

File content as of revision 38:a54b45e2eafe:

/* Copyright (C) 2012 mbed.org, MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
 * and associated documentation files (the "Software"), to deal in the Software without restriction,
 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or
 * substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

#ifndef LWIPOPTS_CONF_H
#define LWIPOPTS_CONF_H

#define LWIP_TRANSPORT_ETHERNET      1

#define LWIP_UDP                     0
#define LWIP_UDPLITE                 0

#define LWIP_STATS                   0

#define LWIP_ARP                     1
#define ARP_TABLE_SIZE               10
#define ARP_QUEUEING                 1
#define ETHARP_TRUST_IP_MAC          1

#define IP_FORWARD                   0
#define IP_OPTIONS_ALLOWED           1
#define IP_REASSEMBLY                0
#define IP_FRAG                      0
#define IP_DEFAULT_TTL               255

#endif