Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
ppp_opts.h
00001 /* 00002 * Redistribution and use in source and binary forms, with or without modification, 00003 * are permitted provided that the following conditions are met: 00004 * 00005 * 1. Redistributions of source code must retain the above copyright notice, 00006 * this list of conditions and the following disclaimer. 00007 * 2. Redistributions in binary form must reproduce the above copyright notice, 00008 * this list of conditions and the following disclaimer in the documentation 00009 * and/or other materials provided with the distribution. 00010 * 3. The name of the author may not be used to endorse or promote products 00011 * derived from this software without specific prior written permission. 00012 * 00013 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 00014 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00015 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 00016 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00017 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 00018 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00019 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00020 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 00021 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 00022 * OF SUCH DAMAGE. 00023 * 00024 * This file is part of the lwIP TCP/IP stack. 00025 * 00026 */ 00027 00028 #ifndef PPP_OPTS_H 00029 #define PPP_OPTS_H 00030 00031 #include "nsapi_types.h" 00032 00033 // Enable PPP for now either from lwIP PPP configuration (obsolete) or from PPP service configuration 00034 #if MBED_CONF_PPP_ENABLED || MBED_CONF_LWIP_PPP_ENABLED 00035 00036 #define PPP_SUPPORT 1 00037 00038 // For LWIP stack enable PPP Ipv4/Ipv6 support from LWIP IP version flags 00039 #define LWIP 0x11991199 00040 00041 #if MBED_CONF_PPP_IPV4_ENABLED || ((MBED_CONF_NSAPI_DEFAULT_STACK == LWIP) && MBED_CONF_LWIP_IPV4_ENABLED) 00042 #define PPP_IPV4_SUPPORT 1 00043 #endif 00044 00045 #if MBED_CONF_PPP_IPV6_ENABLED || ((MBED_CONF_NSAPI_DEFAULT_STACK == LWIP) && MBED_CONF_LWIP_IPV6_ENABLED) 00046 #define PPP_IPV6_SUPPORT 1 00047 #endif 00048 #undef LWIP 00049 00050 #if MBED_CONF_PPP_ENABLE_TRACE 00051 // Traces every packet 00052 #define PPP_TRACE_ENABLE 1 00053 #define PPP_TRACE_BUFFER_SIZE 0 //50000 00054 #endif 00055 00056 #endif 00057 00058 #if PPP_SUPPORT 00059 00060 #define CHAP_SUPPORT 1 00061 #define PPP_INPROC_IRQ_SAFE 1 00062 #define NO_SYS 1 00063 // Save RAM 00064 #define PAP_SUPPORT 0 00065 #define VJ_SUPPORT 0 00066 #define PRINTPKT_SUPPORT 0 00067 00068 #define MAXNAMELEN 64 /* max length of hostname or name for auth */ 00069 #define MAXSECRETLEN 64 00070 00071 #define PPP_DNS 1 00072 00073 // Used as maximum size for output buffer, to restrict the memory manager get_pool_alloc_unit() 00074 #ifndef PBUF_POOL_BUFSIZE 00075 #define PBUF_POOL_BUFSIZE 536 + 40 00076 #endif 00077 00078 #endif // PPP_SUPPORT 00079 00080 #include "ppp_service_if.h" 00081 00082 /** 00083 * PPP_SUPPORT==1: Enable PPP. 00084 */ 00085 #ifndef PPP_SUPPORT 00086 #define PPP_SUPPORT 0 00087 #endif 00088 00089 /** 00090 * PPPOE_SUPPORT==1: Enable PPP Over Ethernet 00091 */ 00092 #ifndef PPPOE_SUPPORT 00093 #define PPPOE_SUPPORT 0 00094 #endif 00095 00096 /** 00097 * PPPOL2TP_SUPPORT==1: Enable PPP Over L2TP 00098 */ 00099 #ifndef PPPOL2TP_SUPPORT 00100 #define PPPOL2TP_SUPPORT 0 00101 #endif 00102 00103 /** 00104 * PPPOL2TP_AUTH_SUPPORT==1: Enable PPP Over L2TP Auth (enable MD5 support) 00105 */ 00106 #ifndef PPPOL2TP_AUTH_SUPPORT 00107 #define PPPOL2TP_AUTH_SUPPORT PPPOL2TP_SUPPORT 00108 #endif 00109 00110 /** 00111 * PPPOS_SUPPORT==1: Enable PPP Over Serial 00112 */ 00113 #ifndef PPPOS_SUPPORT 00114 #define PPPOS_SUPPORT PPP_SUPPORT 00115 #endif 00116 00117 /** 00118 * PPP_API==1: Enable PPP API (in pppapi.c) 00119 */ 00120 #ifndef PPP_API 00121 #define PPP_API 0 //(PPP_SUPPORT && (NO_SYS == 0)) 00122 #endif 00123 00124 #if PPP_SUPPORT 00125 00126 /** 00127 * MEMP_NUM_PPP_PCB: the number of simultaneously active PPP 00128 * connections (requires the PPP_SUPPORT option) 00129 */ 00130 #ifndef MEMP_NUM_PPP_PCB 00131 #define MEMP_NUM_PPP_PCB 1 00132 #endif 00133 00134 /** 00135 * PPP_NUM_TIMEOUTS_PER_PCB: the number of sys_timeouts running in parallel per 00136 * ppp_pcb. See the detailed explanation at the end of ppp_impl.h about simultaneous 00137 * timers analysis. 00138 */ 00139 #ifndef PPP_NUM_TIMEOUTS_PER_PCB 00140 #define PPP_NUM_TIMEOUTS_PER_PCB (1 + PPP_IPV4_SUPPORT + PPP_IPV6_SUPPORT + CCP_SUPPORT) 00141 #endif 00142 00143 /* The number of sys_timeouts required for the PPP module */ 00144 #define PPP_NUM_TIMEOUTS (PPP_SUPPORT * PPP_NUM_TIMEOUTS_PER_PCB * MEMP_NUM_PPP_PCB) 00145 00146 /** 00147 * MEMP_NUM_PPPOS_INTERFACES: the number of concurrently active PPPoS 00148 * interfaces (only used with PPPOS_SUPPORT==1) 00149 */ 00150 #ifndef MEMP_NUM_PPPOS_INTERFACES 00151 #define MEMP_NUM_PPPOS_INTERFACES MEMP_NUM_PPP_PCB 00152 #endif 00153 00154 /** 00155 * MEMP_NUM_PPPOE_INTERFACES: the number of concurrently active PPPoE 00156 * interfaces (only used with PPPOE_SUPPORT==1) 00157 */ 00158 #ifndef MEMP_NUM_PPPOE_INTERFACES 00159 #define MEMP_NUM_PPPOE_INTERFACES 1 00160 #endif 00161 00162 /** 00163 * MEMP_NUM_PPPOL2TP_INTERFACES: the number of concurrently active PPPoL2TP 00164 * interfaces (only used with PPPOL2TP_SUPPORT==1) 00165 */ 00166 #ifndef MEMP_NUM_PPPOL2TP_INTERFACES 00167 #define MEMP_NUM_PPPOL2TP_INTERFACES 1 00168 #endif 00169 00170 /** 00171 * MEMP_NUM_PPP_API_MSG: Number of concurrent PPP API messages (in pppapi.c) 00172 */ 00173 #ifndef MEMP_NUM_PPP_API_MSG 00174 #define MEMP_NUM_PPP_API_MSG 5 00175 #endif 00176 00177 00178 /** 00179 * PPP_INPROC_IRQ_SAFE==1 call pppos_input() using tcpip_callback(). 00180 * 00181 * Please read the "PPPoS input path" chapter in the PPP documentation about this option. 00182 */ 00183 #ifndef PPP_INPROC_IRQ_SAFE 00184 #define PPP_INPROC_IRQ_SAFE 1 00185 #endif 00186 00187 /** 00188 * PRINTPKT_SUPPORT==1: Enable PPP print packet support 00189 * 00190 * Mandatory for debugging, it displays exchanged packet content in debug trace. 00191 */ 00192 #ifndef PRINTPKT_SUPPORT 00193 #define PRINTPKT_SUPPORT 0 00194 #endif 00195 00196 /** 00197 * PPP_NOTIFY_PHASE==1: Support PPP notify phase support 00198 * 00199 * PPP notify phase support allows you to set a callback which is 00200 * called on change of the internal PPP state machine. 00201 * 00202 * This can be used for example to set a LED pattern depending on the 00203 * current phase of the PPP session. 00204 */ 00205 #ifndef PPP_NOTIFY_PHASE 00206 #define PPP_NOTIFY_PHASE 0 00207 #endif 00208 00209 /** 00210 * pbuf_type PPP is using for LCP, PAP, CHAP, EAP, CCP, IPCP and IP6CP packets. 00211 * 00212 * Memory allocated must be single buffered for PPP to works, it requires pbuf 00213 * that are not going to be chained when allocated. This requires setting 00214 * PBUF_POOL_BUFSIZE to at least 512 bytes, which is quite huge for small systems. 00215 * 00216 * Setting PPP_USE_PBUF_RAM to 1 makes PPP use memory from heap where continuous 00217 * buffers are required, allowing you to use a smaller PBUF_POOL_BUFSIZE. 00218 */ 00219 #ifndef PPP_USE_PBUF_RAM 00220 #define PPP_USE_PBUF_RAM 0 00221 #endif 00222 00223 /** 00224 * PPP_FCS_TABLE: Keep a 256*2 byte table to speed up FCS calculation for PPPoS 00225 */ 00226 #ifndef PPP_FCS_TABLE 00227 #define PPP_FCS_TABLE 1 00228 #endif 00229 00230 /** 00231 * PAP_SUPPORT==1: Support PAP. 00232 */ 00233 #ifndef PAP_SUPPORT 00234 #define PAP_SUPPORT 0 00235 #endif 00236 00237 /** 00238 * CHAP_SUPPORT==1: Support CHAP. 00239 */ 00240 #ifndef CHAP_SUPPORT 00241 #define CHAP_SUPPORT 0 00242 #endif 00243 00244 /** 00245 * MSCHAP_SUPPORT==1: Support MSCHAP. 00246 */ 00247 #ifndef MSCHAP_SUPPORT 00248 #define MSCHAP_SUPPORT 0 00249 #endif 00250 #if MSCHAP_SUPPORT 00251 /* MSCHAP requires CHAP support */ 00252 #undef CHAP_SUPPORT 00253 #define CHAP_SUPPORT 1 00254 #endif /* MSCHAP_SUPPORT */ 00255 00256 /** 00257 * EAP_SUPPORT==1: Support EAP. 00258 */ 00259 #ifndef EAP_SUPPORT 00260 #define EAP_SUPPORT 0 00261 #endif 00262 00263 /** 00264 * CCP_SUPPORT==1: Support CCP. 00265 */ 00266 #ifndef CCP_SUPPORT 00267 #define CCP_SUPPORT 0 00268 #endif 00269 00270 /** 00271 * MPPE_SUPPORT==1: Support MPPE. 00272 */ 00273 #ifndef MPPE_SUPPORT 00274 #define MPPE_SUPPORT 0 00275 #endif 00276 #if MPPE_SUPPORT 00277 /* MPPE requires CCP support */ 00278 #undef CCP_SUPPORT 00279 #define CCP_SUPPORT 1 00280 /* MPPE requires MSCHAP support */ 00281 #undef MSCHAP_SUPPORT 00282 #define MSCHAP_SUPPORT 1 00283 /* MSCHAP requires CHAP support */ 00284 #undef CHAP_SUPPORT 00285 #define CHAP_SUPPORT 1 00286 #endif /* MPPE_SUPPORT */ 00287 00288 /** 00289 * CBCP_SUPPORT==1: Support CBCP. CURRENTLY NOT SUPPORTED! DO NOT SET! 00290 */ 00291 #ifndef CBCP_SUPPORT 00292 #define CBCP_SUPPORT 0 00293 #endif 00294 00295 /** 00296 * ECP_SUPPORT==1: Support ECP. CURRENTLY NOT SUPPORTED! DO NOT SET! 00297 */ 00298 #ifndef ECP_SUPPORT 00299 #define ECP_SUPPORT 0 00300 #endif 00301 00302 /** 00303 * DEMAND_SUPPORT==1: Support dial on demand. CURRENTLY NOT SUPPORTED! DO NOT SET! 00304 */ 00305 #ifndef DEMAND_SUPPORT 00306 #define DEMAND_SUPPORT 0 00307 #endif 00308 00309 /** 00310 * LQR_SUPPORT==1: Support Link Quality Report. Do nothing except exchanging some LCP packets. 00311 */ 00312 #ifndef LQR_SUPPORT 00313 #define LQR_SUPPORT 0 00314 #endif 00315 00316 /** 00317 * PPP_SERVER==1: Enable PPP server support (waiting for incoming PPP session). 00318 * 00319 * Currently only supported for PPPoS. 00320 */ 00321 #ifndef PPP_SERVER 00322 #define PPP_SERVER 0 00323 #endif 00324 00325 #if PPP_SERVER 00326 /* 00327 * PPP_OUR_NAME: Our name for authentication purposes 00328 */ 00329 #ifndef PPP_OUR_NAME 00330 #define PPP_OUR_NAME "ppp" 00331 #endif 00332 #endif /* PPP_SERVER */ 00333 00334 /** 00335 * VJ_SUPPORT==1: Support VJ header compression. 00336 */ 00337 #ifndef VJ_SUPPORT 00338 #define VJ_SUPPORT 1 00339 #endif 00340 /* VJ compression is only supported for TCP over IPv4 over PPPoS. */ 00341 #if !PPPOS_SUPPORT || !PPP_IPV4_SUPPORT || !LWIP_TCP 00342 #undef VJ_SUPPORT 00343 #define VJ_SUPPORT 0 00344 #endif /* !PPPOS_SUPPORT */ 00345 00346 /** 00347 * PPP_MD5_RANDM==1: Use MD5 for better randomness. 00348 * Enabled by default if CHAP, EAP, or L2TP AUTH support is enabled. 00349 */ 00350 #ifndef PPP_MD5_RANDM 00351 #define PPP_MD5_RANDM (CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT) 00352 #endif 00353 00354 /** 00355 * PolarSSL embedded library 00356 * 00357 * 00358 * PPP contains some files fetched from the latest BSD release of 00359 * the PolarSSL project (PolarSSL 0.10.1-bsd) for ciphers and encryption 00360 * methods we need for PPP support. 00361 * 00362 * The PolarSSL files were cleaned to contain only the necessary struct 00363 * fields and functions needed for PPP. 00364 * 00365 * The PolarSSL API was not changed at all, so if you are already using 00366 * PolarSSL you can choose to skip the compilation of the included PolarSSL 00367 * library into PPP. 00368 * 00369 * If you are not using the embedded copy you must include external 00370 * libraries into your arch/cc.h port file. 00371 * 00372 * Beware of the stack requirements which can be a lot larger if you are not 00373 * using our cleaned PolarSSL library. 00374 */ 00375 00376 /** 00377 * PPP_USE_EXTERNAL_POLARSSL: Use external PolarSSL library 00378 */ 00379 #ifndef PPP_USE_EXTERNAL_POLARSSL 00380 #define PPP_USE_EXTERNAL_POLARSSL 0 00381 #endif 00382 00383 /** 00384 * PPP_USE_EXTERNAL_MBEDTLS: Use external mbed TLS library 00385 */ 00386 #ifndef PPP_USE_EXTERNAL_MBEDTLS 00387 #define PPP_USE_EXTERNAL_MBEDTLS 0 00388 #endif 00389 00390 /* 00391 * PPP Timeouts 00392 */ 00393 00394 /** 00395 * FSM_DEFTIMEOUT: Timeout time in seconds 00396 */ 00397 #ifndef FSM_DEFTIMEOUT 00398 #define FSM_DEFTIMEOUT 6 00399 #endif 00400 00401 /** 00402 * FSM_DEFMAXTERMREQS: Maximum Terminate-Request transmissions 00403 */ 00404 #ifndef FSM_DEFMAXTERMREQS 00405 #define FSM_DEFMAXTERMREQS 2 00406 #endif 00407 00408 /** 00409 * FSM_DEFMAXCONFREQS: Maximum Configure-Request transmissions 00410 */ 00411 #ifndef FSM_DEFMAXCONFREQS 00412 #define FSM_DEFMAXCONFREQS 10 00413 #endif 00414 00415 /** 00416 * FSM_DEFMAXNAKLOOPS: Maximum number of nak loops 00417 */ 00418 #ifndef FSM_DEFMAXNAKLOOPS 00419 #define FSM_DEFMAXNAKLOOPS 5 00420 #endif 00421 00422 /** 00423 * UPAP_DEFTIMEOUT: Timeout (seconds) for re-transmitting req 00424 */ 00425 #ifndef UPAP_DEFTIMEOUT 00426 #define UPAP_DEFTIMEOUT 6 00427 #endif 00428 00429 /** 00430 * UPAP_DEFTRANSMITS: Maximum number of auth-reqs to send 00431 */ 00432 #ifndef UPAP_DEFTRANSMITS 00433 #define UPAP_DEFTRANSMITS 10 00434 #endif 00435 00436 #if PPP_SERVER 00437 /** 00438 * UPAP_DEFREQTIME: Time to wait for auth-req from peer 00439 */ 00440 #ifndef UPAP_DEFREQTIME 00441 #define UPAP_DEFREQTIME 30 00442 #endif 00443 #endif /* PPP_SERVER */ 00444 00445 /** 00446 * CHAP_DEFTIMEOUT: Timeout (seconds) for re-transmitting req 00447 */ 00448 #ifndef CHAP_DEFTIMEOUT 00449 #define CHAP_DEFTIMEOUT 6 00450 #endif 00451 00452 /** 00453 * CHAP_DEFTRANSMITS: max # times to send challenge 00454 */ 00455 #ifndef CHAP_DEFTRANSMITS 00456 #define CHAP_DEFTRANSMITS 10 00457 #endif 00458 00459 #if PPP_SERVER 00460 /** 00461 * CHAP_DEFRECHALLENGETIME: If this option is > 0, re-challenge the peer every n seconds 00462 */ 00463 #ifndef CHAP_DEFRECHALLENGETIME 00464 #define CHAP_DEFRECHALLENGETIME 0 00465 #endif 00466 #endif /* PPP_SERVER */ 00467 00468 /** 00469 * EAP_DEFREQTIME: Time to wait for peer request 00470 */ 00471 #ifndef EAP_DEFREQTIME 00472 #define EAP_DEFREQTIME 6 00473 #endif 00474 00475 /** 00476 * EAP_DEFALLOWREQ: max # times to accept requests 00477 */ 00478 #ifndef EAP_DEFALLOWREQ 00479 #define EAP_DEFALLOWREQ 10 00480 #endif 00481 00482 #if PPP_SERVER 00483 /** 00484 * EAP_DEFTIMEOUT: Timeout (seconds) for rexmit 00485 */ 00486 #ifndef EAP_DEFTIMEOUT 00487 #define EAP_DEFTIMEOUT 6 00488 #endif 00489 00490 /** 00491 * EAP_DEFTRANSMITS: max # times to transmit 00492 */ 00493 #ifndef EAP_DEFTRANSMITS 00494 #define EAP_DEFTRANSMITS 10 00495 #endif 00496 #endif /* PPP_SERVER */ 00497 00498 /** 00499 * LCP_DEFLOOPBACKFAIL: Default number of times we receive our magic number from the peer 00500 * before deciding the link is looped-back. 00501 */ 00502 #ifndef LCP_DEFLOOPBACKFAIL 00503 #define LCP_DEFLOOPBACKFAIL 10 00504 #endif 00505 00506 /** 00507 * LCP_ECHOINTERVAL: Interval in seconds between keepalive echo requests, 0 to disable. 00508 */ 00509 #ifndef LCP_ECHOINTERVAL 00510 #define LCP_ECHOINTERVAL 0 00511 #endif 00512 00513 /** 00514 * LCP_MAXECHOFAILS: Number of unanswered echo requests before failure. 00515 */ 00516 #ifndef LCP_MAXECHOFAILS 00517 #define LCP_MAXECHOFAILS 3 00518 #endif 00519 00520 /** 00521 * PPP_MAXIDLEFLAG: Max Xmit idle time (in ms) before resend flag char. 00522 */ 00523 #ifndef PPP_MAXIDLEFLAG 00524 #define PPP_MAXIDLEFLAG 100 00525 #endif 00526 00527 /** 00528 * PPP Packet sizes 00529 */ 00530 00531 /** 00532 * PPP_MRU: Default MRU 00533 */ 00534 #ifndef PPP_MRU 00535 #define PPP_MRU 1500 00536 #endif 00537 00538 /** 00539 * PPP_DEFMRU: Default MRU to try 00540 */ 00541 #ifndef PPP_DEFMRU 00542 #define PPP_DEFMRU 1500 00543 #endif 00544 00545 /** 00546 * PPP_MAXMRU: Normally limit MRU to this (pppd default = 16384) 00547 */ 00548 #ifndef PPP_MAXMRU 00549 #define PPP_MAXMRU 1500 00550 #endif 00551 00552 /** 00553 * PPP_MINMRU: No MRUs below this 00554 */ 00555 #ifndef PPP_MINMRU 00556 #define PPP_MINMRU 128 00557 #endif 00558 00559 /** 00560 * PPPOL2TP_DEFMRU: Default MTU and MRU for L2TP 00561 * Default = 1500 - PPPoE(6) - PPP Protocol(2) - IPv4 header(20) - UDP Header(8) 00562 * - L2TP Header(6) - HDLC Header(2) - PPP Protocol(2) - MPPE Header(2) - PPP Protocol(2) 00563 */ 00564 #if PPPOL2TP_SUPPORT 00565 #ifndef PPPOL2TP_DEFMRU 00566 #define PPPOL2TP_DEFMRU 1450 00567 #endif 00568 #endif /* PPPOL2TP_SUPPORT */ 00569 00570 /** 00571 * MAXNAMELEN: max length of hostname or name for auth 00572 */ 00573 #ifndef MAXNAMELEN 00574 #define MAXNAMELEN 256 00575 #endif 00576 00577 /** 00578 * MAXSECRETLEN: max length of password or secret 00579 */ 00580 #ifndef MAXSECRETLEN 00581 #define MAXSECRETLEN 256 00582 #endif 00583 00584 /* ------------------------------------------------------------------------- */ 00585 00586 /* 00587 * Build triggers for embedded PolarSSL 00588 */ 00589 00590 /* CHAP, EAP, L2TP AUTH and MD5 Random require MD5 support */ 00591 #if CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT || PPP_MD5_RANDM 00592 #define PPP_INCLUDED_POLARSSL_MD5 1 00593 #endif /* CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT || PPP_MD5_RANDM */ 00594 00595 #if MSCHAP_SUPPORT 00596 00597 /* MSCHAP require MD4 support */ 00598 #define PPP_INCLUDED_POLARSSL_MD4 1 00599 /* MSCHAP require SHA1 support */ 00600 #define PPP_INCLUDED_POLARSSL_SHA1 1 00601 /* MSCHAP require DES support */ 00602 #define PPP_INCLUDED_POLARSSL_DES 1 00603 00604 /* MS-CHAP support is required for MPPE */ 00605 #if MPPE_SUPPORT 00606 /* MPPE require ARC4 support */ 00607 #define PPP_INCLUDED_POLARSSL_ARC4 1 00608 #endif /* MPPE_SUPPORT */ 00609 00610 #endif /* MSCHAP_SUPPORT */ 00611 00612 /* Default value if unset */ 00613 #ifndef PPP_INCLUDED_POLARSSL_MD4 00614 #define PPP_INCLUDED_POLARSSL_MD4 0 00615 #endif /* PPP_INCLUDED_POLARSSL_MD4 */ 00616 #ifndef PPP_INCLUDED_POLARSSL_MD5 00617 #define PPP_INCLUDED_POLARSSL_MD5 0 00618 #endif /* PPP_INCLUDED_POLARSSL_MD5 */ 00619 #ifndef PPP_INCLUDED_POLARSSL_SHA1 00620 #define PPP_INCLUDED_POLARSSL_SHA1 0 00621 #endif /* PPP_INCLUDED_POLARSSL_SHA1 */ 00622 #ifndef PPP_INCLUDED_POLARSSL_DES 00623 #define PPP_INCLUDED_POLARSSL_DES 0 00624 #endif /* PPP_INCLUDED_POLARSSL_DES */ 00625 #ifndef PPP_INCLUDED_POLARSSL_ARC4 00626 #define PPP_INCLUDED_POLARSSL_ARC4 0 00627 #endif /* PPP_INCLUDED_POLARSSL_ARC4 */ 00628 00629 #endif /* PPP_SUPPORT */ 00630 00631 /* Default value if unset */ 00632 #ifndef PPP_NUM_TIMEOUTS 00633 #define PPP_NUM_TIMEOUTS 0 00634 #endif /* PPP_NUM_TIMEOUTS */ 00635 00636 #endif /* PPP_OPTS_H */
Generated on Tue Jul 12 2022 13:54:42 by
