28#ifndef LWIP_PPP_OPTS_H
29#define LWIP_PPP_OPTS_H
44#define PPPOE_SUPPORT 0
50#ifndef PPPOL2TP_SUPPORT
51#define PPPOL2TP_SUPPORT 0
57#ifndef PPPOL2TP_AUTH_SUPPORT
58#define PPPOL2TP_AUTH_SUPPORT PPPOL2TP_SUPPORT
65#define PPPOS_SUPPORT PPP_SUPPORT
72#define LWIP_PPP_API (PPP_SUPPORT && (NO_SYS == 0))
81#ifndef MEMP_NUM_PPP_PCB
82#define MEMP_NUM_PPP_PCB 1
90#ifndef PPP_NUM_TIMEOUTS_PER_PCB
91#define PPP_NUM_TIMEOUTS_PER_PCB (1 + PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT + CCP_SUPPORT)
95#define PPP_NUM_TIMEOUTS (PPP_SUPPORT * PPP_NUM_TIMEOUTS_PER_PCB * MEMP_NUM_PPP_PCB)
101#ifndef MEMP_NUM_PPPOS_INTERFACES
102#define MEMP_NUM_PPPOS_INTERFACES MEMP_NUM_PPP_PCB
109#ifndef MEMP_NUM_PPPOE_INTERFACES
110#define MEMP_NUM_PPPOE_INTERFACES 1
117#ifndef MEMP_NUM_PPPOL2TP_INTERFACES
118#define MEMP_NUM_PPPOL2TP_INTERFACES 1
124#ifndef MEMP_NUM_PPP_API_MSG
125#define MEMP_NUM_PPP_API_MSG 5
132#define PPP_DEBUG LWIP_DBG_OFF
140#ifndef PPP_INPROC_IRQ_SAFE
141#define PPP_INPROC_IRQ_SAFE 0
149#ifndef PRINTPKT_SUPPORT
150#define PRINTPKT_SUPPORT 0
156#ifndef PPP_IPV4_SUPPORT
157#define PPP_IPV4_SUPPORT (LWIP_IPV4)
163#ifndef PPP_IPV6_SUPPORT
164#define PPP_IPV6_SUPPORT (LWIP_IPV6)
176#ifndef PPP_NOTIFY_PHASE
177#define PPP_NOTIFY_PHASE 0
190#ifndef PPP_USE_PBUF_RAM
191#define PPP_USE_PBUF_RAM 0
198#define PPP_FCS_TABLE 1
212#define CHAP_SUPPORT 0
218#ifndef MSCHAP_SUPPORT
219#define MSCHAP_SUPPORT 0
224#define CHAP_SUPPORT 1
245#define MPPE_SUPPORT 0
253#define MSCHAP_SUPPORT 1
256#define CHAP_SUPPORT 1
263#define CBCP_SUPPORT 0
276#ifndef DEMAND_SUPPORT
277#define DEMAND_SUPPORT 0
301#define PPP_OUR_NAME "lwIP"
312#if !PPPOS_SUPPORT || !PPP_IPV4_SUPPORT || !LWIP_TCP
322#define PPP_MD5_RANDM (CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT)
350#ifndef LWIP_USE_EXTERNAL_POLARSSL
351#define LWIP_USE_EXTERNAL_POLARSSL 0
357#ifndef LWIP_USE_EXTERNAL_MBEDTLS
358#define LWIP_USE_EXTERNAL_MBEDTLS 0
368#ifndef FSM_DEFTIMEOUT
369#define FSM_DEFTIMEOUT 6
375#ifndef FSM_DEFMAXTERMREQS
376#define FSM_DEFMAXTERMREQS 2
382#ifndef FSM_DEFMAXCONFREQS
383#define FSM_DEFMAXCONFREQS 10
389#ifndef FSM_DEFMAXNAKLOOPS
390#define FSM_DEFMAXNAKLOOPS 5
396#ifndef UPAP_DEFTIMEOUT
397#define UPAP_DEFTIMEOUT 6
403#ifndef UPAP_DEFTRANSMITS
404#define UPAP_DEFTRANSMITS 10
411#ifndef UPAP_DEFREQTIME
412#define UPAP_DEFREQTIME 30
419#ifndef CHAP_DEFTIMEOUT
420#define CHAP_DEFTIMEOUT 6
426#ifndef CHAP_DEFTRANSMITS
427#define CHAP_DEFTRANSMITS 10
434#ifndef CHAP_DEFRECHALLENGETIME
435#define CHAP_DEFRECHALLENGETIME 0
442#ifndef EAP_DEFREQTIME
443#define EAP_DEFREQTIME 6
449#ifndef EAP_DEFALLOWREQ
450#define EAP_DEFALLOWREQ 10
457#ifndef EAP_DEFTIMEOUT
458#define EAP_DEFTIMEOUT 6
464#ifndef EAP_DEFTRANSMITS
465#define EAP_DEFTRANSMITS 10
473#ifndef LCP_DEFLOOPBACKFAIL
474#define LCP_DEFLOOPBACKFAIL 10
480#ifndef LCP_ECHOINTERVAL
481#define LCP_ECHOINTERVAL 0
487#ifndef LCP_MAXECHOFAILS
488#define LCP_MAXECHOFAILS 3
494#ifndef PPP_MAXIDLEFLAG
495#define PPP_MAXIDLEFLAG 100
513#define PPP_DEFMRU 1500
520#define PPP_MAXMRU 1500
527#define PPP_MINMRU 128
536#ifndef PPPOL2TP_DEFMRU
537#define PPPOL2TP_DEFMRU 1450
545#define MAXNAMELEN 256
552#define MAXSECRETLEN 256
560#if !LWIP_USE_EXTERNAL_POLARSSL && !LWIP_USE_EXTERNAL_MBEDTLS
563#if CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT || PPP_MD5_RANDM
564#define LWIP_INCLUDED_POLARSSL_MD5 1
570#define LWIP_INCLUDED_POLARSSL_MD4 1
572#define LWIP_INCLUDED_POLARSSL_SHA1 1
574#define LWIP_INCLUDED_POLARSSL_DES 1
579#define LWIP_INCLUDED_POLARSSL_ARC4 1
587#ifndef LWIP_INCLUDED_POLARSSL_MD4
588#define LWIP_INCLUDED_POLARSSL_MD4 0
590#ifndef LWIP_INCLUDED_POLARSSL_MD5
591#define LWIP_INCLUDED_POLARSSL_MD5 0
593#ifndef LWIP_INCLUDED_POLARSSL_SHA1
594#define LWIP_INCLUDED_POLARSSL_SHA1 0
596#ifndef LWIP_INCLUDED_POLARSSL_DES
597#define LWIP_INCLUDED_POLARSSL_DES 0
599#ifndef LWIP_INCLUDED_POLARSSL_ARC4
600#define LWIP_INCLUDED_POLARSSL_ARC4 0
606#ifndef PPP_NUM_TIMEOUTS
607#define PPP_NUM_TIMEOUTS 0