|
Mbed OS Reference
|
Loading...
Searching...
No Matches
31#include "nsapi_types.h"
34#if MBED_CONF_PPP_ENABLED || MBED_CONF_LWIP_PPP_ENABLED
39#define LWIP 0x11991199
41#if MBED_CONF_PPP_IPV4_ENABLED || ((MBED_CONF_NSAPI_DEFAULT_STACK == LWIP) && MBED_CONF_LWIP_IPV4_ENABLED)
42#define PPP_IPV4_SUPPORT 1
45#if MBED_CONF_PPP_IPV6_ENABLED || ((MBED_CONF_NSAPI_DEFAULT_STACK == LWIP) && MBED_CONF_LWIP_IPV6_ENABLED)
46#define PPP_IPV6_SUPPORT 1
50#if MBED_CONF_PPP_ENABLE_TRACE
52#define PPP_TRACE_ENABLE 1
53#define PPP_TRACE_BUFFER_SIZE 0
61#define PPP_INPROC_IRQ_SAFE 1
66#define PRINTPKT_SUPPORT 0
69#define MAXSECRETLEN 64
74#ifndef PBUF_POOL_BUFSIZE
75#define PBUF_POOL_BUFSIZE 536 + 40
80#include "ppp_service_if.h"
93#define PPPOE_SUPPORT 0
99#ifndef PPPOL2TP_SUPPORT
100#define PPPOL2TP_SUPPORT 0
106#ifndef PPPOL2TP_AUTH_SUPPORT
107#define PPPOL2TP_AUTH_SUPPORT PPPOL2TP_SUPPORT
114#define PPPOS_SUPPORT PPP_SUPPORT
130#ifndef MEMP_NUM_PPP_PCB
131#define MEMP_NUM_PPP_PCB 1
139#ifndef PPP_NUM_TIMEOUTS_PER_PCB
140#define PPP_NUM_TIMEOUTS_PER_PCB (1 + PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT + CCP_SUPPORT)
144#define PPP_NUM_TIMEOUTS (PPP_SUPPORT * PPP_NUM_TIMEOUTS_PER_PCB * MEMP_NUM_PPP_PCB)
150#ifndef MEMP_NUM_PPPOS_INTERFACES
151#define MEMP_NUM_PPPOS_INTERFACES MEMP_NUM_PPP_PCB
158#ifndef MEMP_NUM_PPPOE_INTERFACES
159#define MEMP_NUM_PPPOE_INTERFACES 1
166#ifndef MEMP_NUM_PPPOL2TP_INTERFACES
167#define MEMP_NUM_PPPOL2TP_INTERFACES 1
173#ifndef MEMP_NUM_PPP_API_MSG
174#define MEMP_NUM_PPP_API_MSG 5
183#ifndef PPP_INPROC_IRQ_SAFE
184#define PPP_INPROC_IRQ_SAFE 1
192#ifndef PRINTPKT_SUPPORT
193#define PRINTPKT_SUPPORT 0
205#ifndef PPP_NOTIFY_PHASE
206#define PPP_NOTIFY_PHASE 0
219#ifndef PPP_USE_PBUF_RAM
220#define PPP_USE_PBUF_RAM 0
227#define PPP_FCS_TABLE 1
241#define CHAP_SUPPORT 0
247#ifndef MSCHAP_SUPPORT
248#define MSCHAP_SUPPORT 0
253#define CHAP_SUPPORT 1
274#define MPPE_SUPPORT 0
282#define MSCHAP_SUPPORT 1
285#define CHAP_SUPPORT 1
292#define CBCP_SUPPORT 0
305#ifndef DEMAND_SUPPORT
306#define DEMAND_SUPPORT 0
330#define PPP_OUR_NAME "ppp"
341#if !PPPOS_SUPPORT || !PPP_IPV4_SUPPORT || !LWIP_TCP
351#define PPP_MD5_RANDM (CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT)
379#ifndef PPP_USE_EXTERNAL_POLARSSL
380#define PPP_USE_EXTERNAL_POLARSSL 0
386#ifndef PPP_USE_EXTERNAL_MBEDTLS
387#define PPP_USE_EXTERNAL_MBEDTLS 0
397#ifndef FSM_DEFTIMEOUT
398#define FSM_DEFTIMEOUT 6
404#ifndef FSM_DEFMAXTERMREQS
405#define FSM_DEFMAXTERMREQS 2
411#ifndef FSM_DEFMAXCONFREQS
412#define FSM_DEFMAXCONFREQS 10
418#ifndef FSM_DEFMAXNAKLOOPS
419#define FSM_DEFMAXNAKLOOPS 5
425#ifndef UPAP_DEFTIMEOUT
426#define UPAP_DEFTIMEOUT 6
432#ifndef UPAP_DEFTRANSMITS
433#define UPAP_DEFTRANSMITS 10
440#ifndef UPAP_DEFREQTIME
441#define UPAP_DEFREQTIME 30
448#ifndef CHAP_DEFTIMEOUT
449#define CHAP_DEFTIMEOUT 6
455#ifndef CHAP_DEFTRANSMITS
456#define CHAP_DEFTRANSMITS 10
463#ifndef CHAP_DEFRECHALLENGETIME
464#define CHAP_DEFRECHALLENGETIME 0
471#ifndef EAP_DEFREQTIME
472#define EAP_DEFREQTIME 6
478#ifndef EAP_DEFALLOWREQ
479#define EAP_DEFALLOWREQ 10
486#ifndef EAP_DEFTIMEOUT
487#define EAP_DEFTIMEOUT 6
493#ifndef EAP_DEFTRANSMITS
494#define EAP_DEFTRANSMITS 10
502#ifndef LCP_DEFLOOPBACKFAIL
503#define LCP_DEFLOOPBACKFAIL 10
509#ifndef LCP_ECHOINTERVAL
510#define LCP_ECHOINTERVAL 0
516#ifndef LCP_MAXECHOFAILS
517#define LCP_MAXECHOFAILS 3
523#ifndef PPP_MAXIDLEFLAG
524#define PPP_MAXIDLEFLAG 100
542#define PPP_DEFMRU 1500
549#define PPP_MAXMRU 1500
556#define PPP_MINMRU 128
565#ifndef PPPOL2TP_DEFMRU
566#define PPPOL2TP_DEFMRU 1450
574#define MAXNAMELEN 256
581#define MAXSECRETLEN 256
591#if CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT || PPP_MD5_RANDM
592#define PPP_INCLUDED_POLARSSL_MD5 1
598#define PPP_INCLUDED_POLARSSL_MD4 1
600#define PPP_INCLUDED_POLARSSL_SHA1 1
602#define PPP_INCLUDED_POLARSSL_DES 1
607#define PPP_INCLUDED_POLARSSL_ARC4 1
613#ifndef PPP_INCLUDED_POLARSSL_MD4
614#define PPP_INCLUDED_POLARSSL_MD4 0
616#ifndef PPP_INCLUDED_POLARSSL_MD5
617#define PPP_INCLUDED_POLARSSL_MD5 0
619#ifndef PPP_INCLUDED_POLARSSL_SHA1
620#define PPP_INCLUDED_POLARSSL_SHA1 0
622#ifndef PPP_INCLUDED_POLARSSL_DES
623#define PPP_INCLUDED_POLARSSL_DES 0
625#ifndef PPP_INCLUDED_POLARSSL_ARC4
626#define PPP_INCLUDED_POLARSSL_ARC4 0
632#ifndef PPP_NUM_TIMEOUTS
633#define PPP_NUM_TIMEOUTS 0