114 lines
2.8 KiB
C
Executable file
114 lines
2.8 KiB
C
Executable file
/* This file specifies the lwip features */
|
|
|
|
#ifndef __LWIPOPTS_H__
|
|
#define __LWIPOPTS_H_
|
|
|
|
/**
|
|
* NO_SYS==1: Provides VERY minimal functionality. Otherwise,
|
|
* use lwIP facilities.
|
|
*/
|
|
#define NO_SYS 0
|
|
|
|
/**
|
|
* LWIP_RAW==1: Enable application layer to hook into the IP layer itself.
|
|
* LWIP_RAW==0: speeds up input processing
|
|
*/
|
|
#define LWIP_RAW 1
|
|
|
|
/**
|
|
* LWIP_SOCKET==1: Enable Socket API (require to use sockets.c)
|
|
*/
|
|
#define LWIP_SOCKET 1
|
|
|
|
/**
|
|
* LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c)
|
|
*/
|
|
#define LWIP_NETCONN 1
|
|
|
|
/**
|
|
* LWIP_DHCP==1: Enable DHCP module.
|
|
*/
|
|
#define LWIP_DHCP 1
|
|
|
|
/**
|
|
* DHCP_DOES_ARP_CHECK==1: Do an ARP check on the offered address.
|
|
*/
|
|
#define DHCP_DOES_ARP_CHECK 0
|
|
|
|
/**
|
|
* ETHARP_TRUST_IP_MAC==1: Incoming IP packets cause the ARP table to be
|
|
* updated with the source MAC and IP addresses supplied in the packet.
|
|
* You may want to disable this if you do not trust LAN peers to have the
|
|
* correct addresses, or as a limited approach to attempt to handle
|
|
* spoofing. If disabled, lwIP will need to make a new ARP request if
|
|
* the peer is not already in the ARP table, adding a little latency.
|
|
* The peer *is* in the ARP table if it requested our address before.
|
|
* Also notice that this slows down input processing of every IP packet!
|
|
*/
|
|
#define ETHARP_TRUST_IP_MAC 1
|
|
|
|
/**
|
|
* LWIP_TCP==1: Turn on TCP.
|
|
*/
|
|
#define LWIP_TCP 1
|
|
|
|
/**
|
|
* TCP_SND_BUF: TCP sender buffer space (bytes).
|
|
*/
|
|
#define TCP_SND_BUF 2048
|
|
|
|
/**
|
|
* LWIP_BROADCAST_PING==1: respond to broadcast pings (default is unicast only)
|
|
*/
|
|
#define LWIP_BROADCAST_PING 1
|
|
|
|
/**
|
|
* LWIP_MULTICAST_PING==1: respond to multicast pings (default is unicast only)
|
|
*/
|
|
#define LWIP_MULTICAST_PING 1
|
|
|
|
/**
|
|
* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active timeouts.
|
|
* (requires NO_SYS==0)
|
|
*/
|
|
#define MEMP_NUM_SYS_TIMEOUT 7
|
|
|
|
/**
|
|
* LWIP_HAVE_LOOPIF==1: Support loop interface (127.0.0.1) and loopif.c
|
|
*/
|
|
#define LWIP_HAVE_LOOPIF 1
|
|
|
|
/**
|
|
* LWIP_NETIF_LOOPBACK==1: Support sending packets with a destination IP
|
|
* address equal to the netif IP address, looping them back up the stack.
|
|
*/
|
|
#define LWIP_NETIF_LOOPBACK 1
|
|
|
|
/**
|
|
* LWIP_CHECKSUM_ON_COPY==1: Calculate checksum when copying data from
|
|
* application buffers to pbufs.
|
|
*/
|
|
#define LWIP_CHECKSUM_ON_COPY 1
|
|
|
|
/**
|
|
* IP_FORWARD==1: Enables the ability to forward IP packets across network
|
|
* interfaces. If you are going to run lwIP on a device with only one network
|
|
* interface, define this to 0.
|
|
*/
|
|
#define IP_FORWARD 1
|
|
|
|
/* DEBUG options */
|
|
#define LWIP_DEBUG 1
|
|
#define DHCP_DEBUG LWIP_DBG_OFF
|
|
#define ETHARP_DEBUG LWIP_DBG_OFF
|
|
#define TCPIP_DEBUG LWIP_DBG_OFF
|
|
#define SYS_DEBUG LWIP_DBG_OFF
|
|
#define RAW_DEBUG LWIP_DBG_OFF
|
|
#define MEM_DEBUG LWIP_DBG_OFF
|
|
#define IP_DEBUG LWIP_DBG_OFF
|
|
#define INET_DEBUG LWIP_DBG_OFF
|
|
#define NETIF_DEBUG LWIP_DBG_ON
|
|
#define TIMERS_DEBUG LWIP_DBG_OFF
|
|
#define SOCKETS_DEBUG LWIP_DBG_OFF
|
|
|
|
#endif
|