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))
79#ifndef MEMP_NUM_PPP_PCB
80#define MEMP_NUM_PPP_PCB 1
89#ifndef MEMP_NUM_PPPOS_INTERFACES
90#define MEMP_NUM_PPPOS_INTERFACES MEMP_NUM_PPP_PCB
97#ifndef MEMP_NUM_PPPOE_INTERFACES
98#define MEMP_NUM_PPPOE_INTERFACES 1
105#ifndef MEMP_NUM_PPPOL2TP_INTERFACES
106#define MEMP_NUM_PPPOL2TP_INTERFACES 1
112#ifndef MEMP_NUM_PPP_API_MSG
113#define MEMP_NUM_PPP_API_MSG 5
120#define PPP_DEBUG LWIP_DBG_OFF
128#ifndef PPP_INPROC_IRQ_SAFE
129#define PPP_INPROC_IRQ_SAFE 0
137#ifndef PRINTPKT_SUPPORT
138#define PRINTPKT_SUPPORT 0
144#ifndef PPP_IPV4_SUPPORT
145#define PPP_IPV4_SUPPORT (LWIP_IPV4)
151#ifndef PPP_IPV6_SUPPORT
152#define PPP_IPV6_SUPPORT (LWIP_IPV6)
164#ifndef PPP_NOTIFY_PHASE
165#define PPP_NOTIFY_PHASE 0
178#ifndef PPP_USE_PBUF_RAM
179#define PPP_USE_PBUF_RAM 0
186#define PPP_FCS_TABLE 1
200#define CHAP_SUPPORT 0
206#ifndef MSCHAP_SUPPORT
207#define MSCHAP_SUPPORT 0
212#define CHAP_SUPPORT 1
233#define MPPE_SUPPORT 0
241#define MSCHAP_SUPPORT 1
244#define CHAP_SUPPORT 1
251#define CBCP_SUPPORT 0
264#ifndef DEMAND_SUPPORT
265#define DEMAND_SUPPORT 0
289#define PPP_OUR_NAME "lwIP"
300#if !PPPOS_SUPPORT || !PPP_IPV4_SUPPORT || !LWIP_TCP
310#define PPP_MD5_RANDM (CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT)
338#ifndef LWIP_USE_EXTERNAL_POLARSSL
339#define LWIP_USE_EXTERNAL_POLARSSL 0
345#ifndef LWIP_USE_EXTERNAL_MBEDTLS
346#define LWIP_USE_EXTERNAL_MBEDTLS 0
356#ifndef FSM_DEFTIMEOUT
357#define FSM_DEFTIMEOUT 6
363#ifndef FSM_DEFMAXTERMREQS
364#define FSM_DEFMAXTERMREQS 2
370#ifndef FSM_DEFMAXCONFREQS
371#define FSM_DEFMAXCONFREQS 10
377#ifndef FSM_DEFMAXNAKLOOPS
378#define FSM_DEFMAXNAKLOOPS 5
384#ifndef UPAP_DEFTIMEOUT
385#define UPAP_DEFTIMEOUT 6
391#ifndef UPAP_DEFTRANSMITS
392#define UPAP_DEFTRANSMITS 10
399#ifndef UPAP_DEFREQTIME
400#define UPAP_DEFREQTIME 30
407#ifndef CHAP_DEFTIMEOUT
408#define CHAP_DEFTIMEOUT 6
414#ifndef CHAP_DEFTRANSMITS
415#define CHAP_DEFTRANSMITS 10
422#ifndef CHAP_DEFRECHALLENGETIME
423#define CHAP_DEFRECHALLENGETIME 0
430#ifndef EAP_DEFREQTIME
431#define EAP_DEFREQTIME 6
437#ifndef EAP_DEFALLOWREQ
438#define EAP_DEFALLOWREQ 10
445#ifndef EAP_DEFTIMEOUT
446#define EAP_DEFTIMEOUT 6
452#ifndef EAP_DEFTRANSMITS
453#define EAP_DEFTRANSMITS 10
461#ifndef LCP_DEFLOOPBACKFAIL
462#define LCP_DEFLOOPBACKFAIL 10
468#ifndef LCP_ECHOINTERVAL
469#define LCP_ECHOINTERVAL 0
475#ifndef LCP_MAXECHOFAILS
476#define LCP_MAXECHOFAILS 3
482#ifndef PPP_MAXIDLEFLAG
483#define PPP_MAXIDLEFLAG 100
501#define PPP_DEFMRU 1500
508#define PPP_MAXMRU 1500
515#define PPP_MINMRU 128
524#ifndef PPPOL2TP_DEFMRU
525#define PPPOL2TP_DEFMRU 1450
533#define MAXNAMELEN 256
540#define MAXSECRETLEN 256
548#if !LWIP_USE_EXTERNAL_POLARSSL && !LWIP_USE_EXTERNAL_MBEDTLS
551#if CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT || PPP_MD5_RANDM
552#define LWIP_INCLUDED_POLARSSL_MD5 1
558#define LWIP_INCLUDED_POLARSSL_MD4 1
560#define LWIP_INCLUDED_POLARSSL_SHA1 1
562#define LWIP_INCLUDED_POLARSSL_DES 1
567#define LWIP_INCLUDED_POLARSSL_ARC4 1
575#ifndef LWIP_INCLUDED_POLARSSL_MD4
576#define LWIP_INCLUDED_POLARSSL_MD4 0
578#ifndef LWIP_INCLUDED_POLARSSL_MD5
579#define LWIP_INCLUDED_POLARSSL_MD5 0
581#ifndef LWIP_INCLUDED_POLARSSL_SHA1
582#define LWIP_INCLUDED_POLARSSL_SHA1 0
584#ifndef LWIP_INCLUDED_POLARSSL_DES
585#define LWIP_INCLUDED_POLARSSL_DES 0
587#ifndef LWIP_INCLUDED_POLARSSL_ARC4
588#define LWIP_INCLUDED_POLARSSL_ARC4 0