?? opt.h
字號:
#define ETHARP_STATS (LWIP_ARP)#endif/** * IP_STATS==1: Enable IP stats. */#ifndef IP_STATS#define IP_STATS 1#endif/** * IPFRAG_STATS==1: Enable IP fragmentation stats. Default is * on if using either frag or reass. */#ifndef IPFRAG_STATS#define IPFRAG_STATS (IP_REASSEMBLY || IP_FRAG)#endif/** * ICMP_STATS==1: Enable ICMP stats. */#ifndef ICMP_STATS#define ICMP_STATS 1#endif/** * IGMP_STATS==1: Enable IGMP stats. */#ifndef IGMP_STATS#define IGMP_STATS (LWIP_IGMP)#endif/** * UDP_STATS==1: Enable UDP stats. Default is on if * UDP enabled, otherwise off. */#ifndef UDP_STATS#define UDP_STATS (LWIP_UDP)#endif/** * TCP_STATS==1: Enable TCP stats. Default is on if TCP * enabled, otherwise off. */#ifndef TCP_STATS#define TCP_STATS (LWIP_TCP)#endif/** * MEM_STATS==1: Enable mem.c stats. */#ifndef MEM_STATS#define MEM_STATS 1#endif/** * MEMP_STATS==1: Enable memp.c pool stats. */#ifndef MEMP_STATS#define MEMP_STATS 1#endif/** * SYS_STATS==1: Enable system stats (sem and mbox counts, etc). */#ifndef SYS_STATS#define SYS_STATS 1#endif#else#define LINK_STATS 0#define IP_STATS 0#define IPFRAG_STATS 0#define ICMP_STATS 0#define IGMP_STATS 0#define UDP_STATS 0#define TCP_STATS 0#define MEM_STATS 0#define MEMP_STATS 0#define SYS_STATS 0#define LWIP_STATS_DISPLAY 0#endif /* LWIP_STATS *//* --------------------------------- ---------- PPP options ---------- ---------------------------------*//** * PPP_SUPPORT==1: Enable PPP. */#ifndef PPP_SUPPORT#define PPP_SUPPORT 0#endif/** * PPPOE_SUPPORT==1: Enable PPP Over Ethernet */#ifndef PPPOE_SUPPORT#define PPPOE_SUPPORT 0#endif/** * PPPOS_SUPPORT==1: Enable PPP Over Serial */#ifndef PPPOS_SUPPORT#define PPPOS_SUPPORT PPP_SUPPORT#endif#if PPP_SUPPORT/** * NUM_PPP: Max PPP sessions. */#ifndef NUM_PPP#define NUM_PPP 1#endif/** * PAP_SUPPORT==1: Support PAP. */#ifndef PAP_SUPPORT#define PAP_SUPPORT 0#endif/** * CHAP_SUPPORT==1: Support CHAP. */#ifndef CHAP_SUPPORT#define CHAP_SUPPORT 0#endif/** * MSCHAP_SUPPORT==1: Support MSCHAP. CURRENTLY NOT SUPPORTED! DO NOT SET! */#ifndef MSCHAP_SUPPORT#define MSCHAP_SUPPORT 0#endif/** * CBCP_SUPPORT==1: Support CBCP. CURRENTLY NOT SUPPORTED! DO NOT SET! */#ifndef CBCP_SUPPORT#define CBCP_SUPPORT 0#endif/** * CCP_SUPPORT==1: Support CCP. CURRENTLY NOT SUPPORTED! DO NOT SET! */#ifndef CCP_SUPPORT#define CCP_SUPPORT 0#endif/** * VJ_SUPPORT==1: Support VJ header compression. */#ifndef VJ_SUPPORT#define VJ_SUPPORT 0#endif/** * MD5_SUPPORT==1: Support MD5 (see also CHAP). */#ifndef MD5_SUPPORT#define MD5_SUPPORT 0#endif/* * Timeouts */#ifndef FSM_DEFTIMEOUT#define FSM_DEFTIMEOUT 6 /* Timeout time in seconds */#endif#ifndef FSM_DEFMAXTERMREQS#define FSM_DEFMAXTERMREQS 2 /* Maximum Terminate-Request transmissions */#endif#ifndef FSM_DEFMAXCONFREQS#define FSM_DEFMAXCONFREQS 10 /* Maximum Configure-Request transmissions */#endif#ifndef FSM_DEFMAXNAKLOOPS#define FSM_DEFMAXNAKLOOPS 5 /* Maximum number of nak loops */#endif#ifndef UPAP_DEFTIMEOUT#define UPAP_DEFTIMEOUT 6 /* Timeout (seconds) for retransmitting req */#endif#ifndef UPAP_DEFREQTIME#define UPAP_DEFREQTIME 30 /* Time to wait for auth-req from peer */#endif#ifndef CHAP_DEFTIMEOUT#define CHAP_DEFTIMEOUT 6 /* Timeout time in seconds */#endif#ifndef CHAP_DEFTRANSMITS#define CHAP_DEFTRANSMITS 10 /* max # times to send challenge */#endif/* Interval in seconds between keepalive echo requests, 0 to disable. */#ifndef LCP_ECHOINTERVAL#define LCP_ECHOINTERVAL 0#endif/* Number of unanswered echo requests before failure. */#ifndef LCP_MAXECHOFAILS#define LCP_MAXECHOFAILS 3#endif/* Max Xmit idle time (in jiffies) before resend flag char. */#ifndef PPP_MAXIDLEFLAG#define PPP_MAXIDLEFLAG 100#endif/* * Packet sizes * * Note - lcp shouldn't be allowed to negotiate stuff outside these * limits. See lcp.h in the pppd directory. * (XXX - these constants should simply be shared by lcp.c instead * of living in lcp.h) */#define PPP_MTU 1500 /* Default MTU (size of Info field) */#ifndef PPP_MAXMTU/* #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN) */#define PPP_MAXMTU 1500 /* Largest MTU we allow */#endif#define PPP_MINMTU 64#define PPP_MRU 1500 /* default MRU = max length of info field */#define PPP_MAXMRU 1500 /* Largest MRU we allow */#ifndef PPP_DEFMRU#define PPP_DEFMRU 296 /* Try for this */#endif#define PPP_MINMRU 128 /* No MRUs below this */#define MAXNAMELEN 256 /* max length of hostname or name for auth */#define MAXSECRETLEN 256 /* max length of password or secret */#endif /* PPP_SUPPORT *//* -------------------------------------- ---------- Checksum options ---------- --------------------------------------*//** * CHECKSUM_GEN_IP==1: Generate checksums in software for outgoing IP packets. */#ifndef CHECKSUM_GEN_IP#define CHECKSUM_GEN_IP 1#endif /** * CHECKSUM_GEN_UDP==1: Generate checksums in software for outgoing UDP packets. */#ifndef CHECKSUM_GEN_UDP#define CHECKSUM_GEN_UDP 1#endif /** * CHECKSUM_GEN_TCP==1: Generate checksums in software for outgoing TCP packets. */#ifndef CHECKSUM_GEN_TCP#define CHECKSUM_GEN_TCP 1#endif /** * CHECKSUM_CHECK_IP==1: Check checksums in software for incoming IP packets. */#ifndef CHECKSUM_CHECK_IP#define CHECKSUM_CHECK_IP 1#endif /** * CHECKSUM_CHECK_UDP==1: Check checksums in software for incoming UDP packets. */#ifndef CHECKSUM_CHECK_UDP#define CHECKSUM_CHECK_UDP 1#endif/** * CHECKSUM_CHECK_TCP==1: Check checksums in software for incoming TCP packets. */#ifndef CHECKSUM_CHECK_TCP#define CHECKSUM_CHECK_TCP 1#endif/* --------------------------------------- ---------- Debugging options ---------- ---------------------------------------*//** * LWIP_DBG_MIN_LEVEL: After masking, the value of the debug is * compared against this value. If it is smaller, then debugging * messages are written. */ #ifndef LWIP_DBG_MIN_LEVEL//#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_OFF#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_WARNING#endif/** * LWIP_DBG_TYPES_ON: A mask that can be used to globally enable/disable * debug messages of certain types. */#ifndef LWIP_DBG_TYPES_ON#define LWIP_DBG_TYPES_ON LWIP_DBG_ON#endif/** * ETHARP_DEBUG: Enable debugging in etharp.c. */#ifndef ETHARP_DEBUG#define ETHARP_DEBUG LWIP_DBG_ON#endif/** * NETIF_DEBUG: Enable debugging in netif.c. */#ifndef NETIF_DEBUG#define NETIF_DEBUG LWIP_DBG_ON#endif/** * PBUF_DEBUG: Enable debugging in pbuf.c. */#ifndef PBUF_DEBUG#define PBUF_DEBUG LWIP_DBG_ON#endif/** * API_LIB_DEBUG: Enable debugging in api_lib.c. */#ifndef API_LIB_DEBUG#define API_LIB_DEBUG LWIP_DBG_ON#endif/** * API_MSG_DEBUG: Enable debugging in api_msg.c. */#ifndef API_MSG_DEBUG#define API_MSG_DEBUG LWIP_DBG_ON#endif/** * SOCKETS_DEBUG: Enable debugging in sockets.c. */#ifndef SOCKETS_DEBUG#define SOCKETS_DEBUG LWIP_DBG_ON#endif/** * ICMP_DEBUG: Enable debugging in icmp.c. */#ifndef ICMP_DEBUG#define ICMP_DEBUG LWIP_DBG_ON#endif/** * IGMP_DEBUG: Enable debugging in igmp.c. */#ifndef IGMP_DEBUG#define IGMP_DEBUG LWIP_DBG_ON#endif/** * INET_DEBUG: Enable debugging in inet.c. */#ifndef INET_DEBUG#define INET_DEBUG LWIP_DBG_ON#endif/** * IP_DEBUG: Enable debugging for IP. */#ifndef IP_DEBUG#define IP_DEBUG LWIP_DBG_ON#endif/** * IP_REASS_DEBUG: Enable debugging in ip_frag.c for both frag & reass. */#ifndef IP_REASS_DEBUG#define IP_REASS_DEBUG LWIP_DBG_ON#endif/** * RAW_DEBUG: Enable debugging in raw.c. */#ifndef RAW_DEBUG#define RAW_DEBUG LWIP_DBG_ON#endif/** * MEM_DEBUG: Enable debugging in mem.c. */#ifndef MEM_DEBUG#define MEM_DEBUG LWIP_DBG_ON#endif/** * MEMP_DEBUG: Enable debugging in memp.c. */#ifndef MEMP_DEBUG#define MEMP_DEBUG LWIP_DBG_ON#endif/** * SYS_DEBUG: Enable debugging in sys.c. */#ifndef SYS_DEBUG#define SYS_DEBUG LWIP_DBG_ON#endif/** * TCP_DEBUG: Enable debugging for TCP. */#ifndef TCP_DEBUG#define TCP_DEBUG LWIP_DBG_ON#endif/** * TCP_INPUT_DEBUG: Enable debugging in tcp_in.c for incoming debug. */#ifndef TCP_INPUT_DEBUG#define TCP_INPUT_DEBUG LWIP_DBG_ON#endif/** * TCP_FR_DEBUG: Enable debugging in tcp_in.c for fast retransmit. */#ifndef TCP_FR_DEBUG#define TCP_FR_DEBUG LWIP_DBG_ON#endif/** * TCP_RTO_DEBUG: Enable debugging in TCP for retransmit * timeout. */#ifndef TCP_RTO_DEBUG#define TCP_RTO_DEBUG LWIP_DBG_ON#endif/** * TCP_CWND_DEBUG: Enable debugging for TCP congestion window. */#ifndef TCP_CWND_DEBUG#define TCP_CWND_DEBUG LWIP_DBG_ON#endif/** * TCP_WND_DEBUG: Enable debugging in tcp_in.c for window updating. */#ifndef TCP_WND_DEBUG#define TCP_WND_DEBUG LWIP_DBG_ON#endif/** * TCP_OUTPUT_DEBUG: Enable debugging in tcp_out.c output functions. */#ifndef TCP_OUTPUT_DEBUG#define TCP_OUTPUT_DEBUG LWIP_DBG_ON#endif/** * TCP_RST_DEBUG: Enable debugging for TCP with the RST message. */#ifndef TCP_RST_DEBUG#define TCP_RST_DEBUG LWIP_DBG_ON#endif/** * TCP_QLEN_DEBUG: Enable debugging for TCP queue lengths. */#ifndef TCP_QLEN_DEBUG#define TCP_QLEN_DEBUG LWIP_DBG_ON#endif/** * UDP_DEBUG: Enable debugging in UDP. */#ifndef UDP_DEBUG#define UDP_DEBUG LWIP_DBG_ON#endif/** * TCPIP_DEBUG: Enable debugging in tcpip.c. */#ifndef TCPIP_DEBUG#define TCPIP_DEBUG LWIP_DBG_ON#endif/** * PPP_DEBUG: Enable debugging for PPP. */#ifndef PPP_DEBUG#define PPP_DEBUG LWIP_DBG_ON#endif/** * SLIP_DEBUG: Enable debugging in slipif.c. */#ifndef SLIP_DEBUG#define SLIP_DEBUG LWIP_DBG_ON#endif/** * DHCP_DEBUG: Enable debugging in dhcp.c. */#ifndef DHCP_DEBUG#define DHCP_DEBUG LWIP_DBG_ON#endif/** * AUTOIP_DEBUG: Enable debugging in autoip.c. */#ifndef AUTOIP_DEBUG#define AUTOIP_DEBUG LWIP_DBG_ON#endif/** * SNMP_MSG_DEBUG: Enable debugging for SNMP messages. */#ifndef SNMP_MSG_DEBUG#define SNMP_MSG_DEBUG LWIP_DBG_ON#endif/** * SNMP_MIB_DEBUG: Enable debugging for SNMP MIBs. */#ifndef SNMP_MIB_DEBUG#define SNMP_MIB_DEBUG LWIP_DBG_ON#endif/** * DNS_DEBUG: Enable debugging for DNS. */#ifndef DNS_DEBUG#define DNS_DEBUG LWIP_DBG_ON#endif#endif /* __LWIP_OPT_H__ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -