📄 opt.h
字号:
#define LWIP_CALLBACK_API 1#else #define LWIP_EVENT_API 1#define LWIP_CALLBACK_API 0#endif #ifndef LWIP_COMPAT_SOCKETS#define LWIP_COMPAT_SOCKETS 1#endif#ifndef TCPIP_THREAD_PRIO#define TCPIP_THREAD_PRIO 1#endif#ifndef SLIPIF_THREAD_PRIO#define SLIPIF_THREAD_PRIO 1#endif#ifndef PPP_THREAD_PRIO#define PPP_THREAD_PRIO 1#endif#ifndef DEFAULT_THREAD_PRIO#define DEFAULT_THREAD_PRIO 1#endif/* ---------- Socket Options ---------- *//* Enable SO_REUSEADDR and SO_REUSEPORT options */ #ifdef SO_REUSE/* I removed the lot since this was an ugly hack. It broke the raw-API. It also came with many ugly goto's, Christiaan Simons. */#error "SO_REUSE currently unavailable, this was a hack"#endif /* ---------- Statistics options ---------- */#ifndef LWIP_STATS#define LWIP_STATS 1#endif#if LWIP_STATS#ifndef LWIP_STATS_DISPLAY#define LWIP_STATS_DISPLAY 0#endif#ifndef LINK_STATS#define LINK_STATS 1#endif#ifndef IP_STATS#define IP_STATS 1#endif#ifndef IPFRAG_STATS#define IPFRAG_STATS 1#endif#ifndef ICMP_STATS#define ICMP_STATS 1#endif#ifndef UDP_STATS#define UDP_STATS 1#endif#ifndef TCP_STATS#define TCP_STATS 1#endif#ifndef MEM_STATS#define MEM_STATS 1#endif#ifndef MEMP_STATS#define MEMP_STATS 1#endif#ifndef PBUF_STATS#define PBUF_STATS 1#endif#ifndef SYS_STATS#define SYS_STATS 1#endif#ifndef RAW_STATS#define RAW_STATS 0#endif#else#define LINK_STATS 0#define IP_STATS 0#define IPFRAG_STATS 0#define ICMP_STATS 0#define UDP_STATS 0#define TCP_STATS 0#define MEM_STATS 0#define MEMP_STATS 0#define PBUF_STATS 0#define SYS_STATS 0#define RAW_STATS 0#define LWIP_STATS_DISPLAY 0#endif /* LWIP_STATS *//* ---------- PPP options ---------- */#ifndef PPP_SUPPORT#define PPP_SUPPORT 0 /* Set for PPP */#endif#if PPP_SUPPORT #define NUM_PPP 1 /* Max PPP sessions. */#ifndef PAP_SUPPORT#define PAP_SUPPORT 0 /* Set for PAP. */#endif#ifndef CHAP_SUPPORT#define CHAP_SUPPORT 0 /* Set for CHAP. */#endif#define MSCHAP_SUPPORT 0 /* Set for MSCHAP (NOT FUNCTIONAL!) */#define CBCP_SUPPORT 0 /* Set for CBCP (NOT FUNCTIONAL!) */#define CCP_SUPPORT 0 /* Set for CCP (NOT FUNCTIONAL!) */#ifndef VJ_SUPPORT#define VJ_SUPPORT 0 /* Set for VJ header compression. */#endif#ifndef MD5_SUPPORT#define MD5_SUPPORT 0 /* Set for MD5 (see also CHAP) */#endif/* * Timeouts. */#define FSM_DEFTIMEOUT 6 /* Timeout time in seconds */#define FSM_DEFMAXTERMREQS 2 /* Maximum Terminate-Request transmissions */#define FSM_DEFMAXCONFREQS 10 /* Maximum Configure-Request transmissions */#define FSM_DEFMAXNAKLOOPS 5 /* Maximum number of nak loops */#define UPAP_DEFTIMEOUT 6 /* Timeout (seconds) for retransmitting req */#define UPAP_DEFREQTIME 30 /* Time to wait for auth-req from peer */#define CHAP_DEFTIMEOUT 6 /* Timeout time in seconds */#define CHAP_DEFTRANSMITS 10 /* max # times to send challenge *//* Interval in seconds between keepalive echo requests, 0 to disable. */#if 1#define LCP_ECHOINTERVAL 0#else#define LCP_ECHOINTERVAL 10#endif/* Number of unanswered echo requests before failure. */#define LCP_MAXECHOFAILS 3/* Max Xmit idle time (in jiffies) before resend flag char. */#define PPP_MAXIDLEFLAG 100/* * 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) */#if 0#define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)#else#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 */#define PPP_DEFMRU 296 /* Try for this */#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 - set to zero for hardware checksum support */#ifndef CHECKSUM_GEN_IP#define CHECKSUM_GEN_IP 1#endif #ifndef CHECKSUM_GEN_UDP#define CHECKSUM_GEN_UDP 1#endif #ifndef CHECKSUM_GEN_TCP#define CHECKSUM_GEN_TCP 1#endif #ifndef CHECKSUM_CHECK_IP#define CHECKSUM_CHECK_IP 1#endif #ifndef CHECKSUM_CHECK_UDP#define CHECKSUM_CHECK_UDP 1#endif#ifndef CHECKSUM_CHECK_TCP#define CHECKSUM_CHECK_TCP 1#endif/* Debugging options all default to off */#ifndef DBG_TYPES_ON#define DBG_TYPES_ON 0#endif#ifndef ETHARP_DEBUG#define ETHARP_DEBUG DBG_OFF#endif#ifndef NETIF_DEBUG#define NETIF_DEBUG DBG_OFF#endif#ifndef PBUF_DEBUG#define PBUF_DEBUG DBG_OFF#endif#ifndef API_LIB_DEBUG#define API_LIB_DEBUG DBG_OFF#endif#ifndef API_MSG_DEBUG#define API_MSG_DEBUG DBG_OFF#endif#ifndef SOCKETS_DEBUG#define SOCKETS_DEBUG DBG_OFF#endif#ifndef ICMP_DEBUG#define ICMP_DEBUG DBG_OFF#endif#ifndef INET_DEBUG#define INET_DEBUG DBG_OFF#endif#ifndef IP_DEBUG#define IP_DEBUG DBG_OFF#endif#ifndef IP_REASS_DEBUG#define IP_REASS_DEBUG DBG_OFF#endif#ifndef RAW_DEBUG#define RAW_DEBUG DBG_OFF#endif#ifndef MEM_DEBUG#define MEM_DEBUG DBG_OFF#endif#ifndef MEMP_DEBUG#define MEMP_DEBUG DBG_OFF#endif#ifndef SYS_DEBUG#define SYS_DEBUG DBG_OFF#endif#ifndef TCP_DEBUG#define TCP_DEBUG DBG_OFF#endif#ifndef TCP_INPUT_DEBUG#define TCP_INPUT_DEBUG DBG_OFF#endif#ifndef TCP_FR_DEBUG#define TCP_FR_DEBUG DBG_OFF#endif#ifndef TCP_RTO_DEBUG#define TCP_RTO_DEBUG DBG_OFF#endif#ifndef TCP_REXMIT_DEBUG#define TCP_REXMIT_DEBUG DBG_OFF#endif#ifndef TCP_CWND_DEBUG#define TCP_CWND_DEBUG DBG_OFF#endif#ifndef TCP_WND_DEBUG#define TCP_WND_DEBUG DBG_OFF#endif#ifndef TCP_OUTPUT_DEBUG#define TCP_OUTPUT_DEBUG DBG_OFF#endif#ifndef TCP_RST_DEBUG#define TCP_RST_DEBUG DBG_OFF#endif#ifndef TCP_QLEN_DEBUG#define TCP_QLEN_DEBUG DBG_OFF#endif#ifndef UDP_DEBUG#define UDP_DEBUG DBG_OFF#endif#ifndef TCPIP_DEBUG#define TCPIP_DEBUG DBG_OFF#endif#ifndef PPP_DEBUG #define PPP_DEBUG DBG_OFF#endif#ifndef SLIP_DEBUG #define SLIP_DEBUG DBG_OFF#endif#ifndef DHCP_DEBUG #define DHCP_DEBUG DBG_OFF#endif#ifndef SNMP_MSG_DEBUG #define SNMP_MSG_DEBUG DBG_OFF#endif#ifndef SNMP_MIB_DEBUG #define SNMP_MIB_DEBUG DBG_OFF#endif#ifndef DBG_MIN_LEVEL#define DBG_MIN_LEVEL DBG_LEVEL_OFF#endif#endif /* __LWIP_OPT_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -