1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
/*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
* This file is part of the lwIP TCP/IP stack.
*
*/
/**
* PPP_SUPPORT==1: Enable PPP.
*/
/**
* PPPOE_SUPPORT==1: Enable PPP Over Ethernet
*/
/**
* PPPOE_SCNAME_SUPPORT==1: Enable PPP Over Ethernet Service Name and Concentrator Name support
*/
/**
* PPPOL2TP_SUPPORT==1: Enable PPP Over L2TP
*/
/**
* PPPOL2TP_AUTH_SUPPORT==1: Enable PPP Over L2TP Auth (enable MD5 support)
*/
/**
* PPPOS_SUPPORT==1: Enable PPP Over Serial
*/
/**
* LWIP_PPP_API==1: Enable PPP API (in pppapi.c)
*/
/**
* MEMP_NUM_PPP_PCB: the number of simultaneously active PPP
* connections (requires the PPP_SUPPORT option)
*/
/**
* PPP_NUM_TIMEOUTS_PER_PCB: the number of sys_timeouts running in parallel per
* ppp_pcb. See the detailed explanation at the end of ppp_impl.h about simultaneous
* timers analysis.
*/
/* The number of sys_timeouts required for the PPP module */
/**
* MEMP_NUM_PPPOS_INTERFACES: the number of concurrently active PPPoS
* interfaces (only used with PPPOS_SUPPORT==1)
*/
/**
* MEMP_NUM_PPPOE_INTERFACES: the number of concurrently active PPPoE
* interfaces (only used with PPPOE_SUPPORT==1)
*/
/**
* MEMP_NUM_PPPOL2TP_INTERFACES: the number of concurrently active PPPoL2TP
* interfaces (only used with PPPOL2TP_SUPPORT==1)
*/
/**
* MEMP_NUM_PPP_API_MSG: Number of concurrent PPP API messages (in pppapi.c)
*/
/**
* PPP_DEBUG: Enable debugging for PPP.
*/
/**
* PPP_INPROC_IRQ_SAFE==1 call pppos_input() using tcpip_callback().
*
* Please read the "PPPoS input path" chapter in the PPP documentation about this option.
*/
/**
* PRINTPKT_SUPPORT==1: Enable PPP print packet support
*
* Mandatory for debugging, it displays exchanged packet content in debug trace.
*/
/**
* PPP_IPV4_SUPPORT==1: Enable PPP IPv4 support
*/
/**
* PPP_IPV6_SUPPORT==1: Enable PPP IPv6 support
*/
/**
* PPP_NOTIFY_PHASE==1: Support PPP notify phase support
*
* PPP notify phase support allows you to set a callback which is
* called on change of the internal PPP state machine.
*
* This can be used for example to set a LED pattern depending on the
* current phase of the PPP session.
*/
/**
* PPP_FCS_TABLE: Keep a 256*2 byte table to speed up FCS calculation for PPPoS
*/
/**
* PAP_SUPPORT==1: Support PAP.
*/
/**
* CHAP_SUPPORT==1: Support CHAP.
*/
/**
* MSCHAP_SUPPORT==1: Support MSCHAP.
*/
/* MSCHAP requires CHAP support */
/* MSCHAP_SUPPORT */
/**
* EAP_SUPPORT==1: Support EAP.
*/
/**
* CCP_SUPPORT==1: Support CCP.
*/
/**
* MPPE_SUPPORT==1: Support MPPE.
*/
/* MPPE requires CCP support */
/* MPPE requires MSCHAP support */
/* MSCHAP requires CHAP support */
/* MPPE_SUPPORT */
/**
* CBCP_SUPPORT==1: Support CBCP. CURRENTLY NOT SUPPORTED! DO NOT SET!
*/
/**
* ECP_SUPPORT==1: Support ECP. CURRENTLY NOT SUPPORTED! DO NOT SET!
*/
/**
* DEMAND_SUPPORT==1: Support dial on demand. CURRENTLY NOT SUPPORTED! DO NOT SET!
*/
/**
* LQR_SUPPORT==1: Support Link Quality Report. Do nothing except exchanging some LCP packets.
*/
/**
* PPP_SERVER==1: Enable PPP server support (waiting for incoming PPP session).
*
* Currently only supported for PPPoS.
*/
/*
* PPP_OUR_NAME: Our name for authentication purposes
*/
/* PPP_SERVER */
/**
* VJ_SUPPORT==1: Support VJ header compression.
*
* BEWARE: It is known to be broken when built with some compiler optimizations enabled.
*/
/* VJ compression is only supported for TCP over IPv4 over PPPoS. */
/* !PPPOS_SUPPORT */
/**
* PPP_MD5_RANDM==1: Use MD5 for better randomness.
* Enabled by default if CHAP, EAP, or L2TP AUTH support is enabled.
*/
/**
* PolarSSL embedded library
*
*
* lwIP contains some files fetched from the latest BSD release of
* the PolarSSL project (PolarSSL 0.10.1-bsd) for ciphers and encryption
* methods we need for lwIP PPP support.
*
* The PolarSSL files were cleaned to contain only the necessary struct
* fields and functions needed for lwIP.
*
* The PolarSSL API was not changed at all, so if you are already using
* PolarSSL you can choose to skip the compilation of the included PolarSSL
* library into lwIP.
*
* If you are not using the embedded copy you must include external
* libraries into your arch/cc.h port file.
*
* Beware of the stack requirements which can be a lot larger if you are not
* using our cleaned PolarSSL library.
*/
/**
* LWIP_USE_EXTERNAL_POLARSSL: Use external PolarSSL library
*/
/**
* LWIP_USE_EXTERNAL_MBEDTLS: Use external mbed TLS library
*/
/*
* PPP Timeouts
*/
/**
* FSM_DEFTIMEOUT: Timeout time in seconds
*/
/**
* FSM_DEFMAXTERMREQS: Maximum Terminate-Request transmissions
*/
/**
* FSM_DEFMAXCONFREQS: Maximum Configure-Request transmissions
*/
/**
* FSM_DEFMAXNAKLOOPS: Maximum number of nak loops
*/
/**
* UPAP_DEFTIMEOUT: Timeout (seconds) for retransmitting req
*/
/**
* UPAP_DEFTRANSMITS: Maximum number of auth-reqs to send
*/
/**
* UPAP_DEFREQTIME: Time to wait for auth-req from peer
*/
/* PPP_SERVER */
/**
* CHAP_DEFTIMEOUT: Timeout (seconds) for retransmitting req
*/
/**
* CHAP_DEFTRANSMITS: max # times to send challenge
*/
/**
* CHAP_DEFRECHALLENGETIME: If this option is > 0, rechallenge the peer every n seconds
*/
/* PPP_SERVER */
/**
* EAP_DEFREQTIME: Time to wait for peer request
*/
/**
* EAP_DEFALLOWREQ: max # times to accept requests
*/
/**
* EAP_DEFTIMEOUT: Timeout (seconds) for rexmit
*/
/**
* EAP_DEFTRANSMITS: max # times to transmit
*/
/* PPP_SERVER */
/**
* LCP_DEFLOOPBACKFAIL: Default number of times we receive our magic number from the peer
* before deciding the link is looped-back.
*/
/**
* LCP_ECHOINTERVAL: Interval in seconds between keepalive echo requests, 0 to disable.
*/
/**
* LCP_MAXECHOFAILS: Number of unanswered echo requests before failure.
*/
/**
* PPP_MAXIDLEFLAG: Max Xmit idle time (in ms) before resend flag char.
*/
/**
* PPP Packet sizes
*/
/**
* PPP_MRU: MRU value we want to negotiate (peer MTU)
*
* It only affects PPPoS because PPPoE value is derived from the
* Ethernet interface MTU and PPPoL2TP have a separate setting.
*/
/**
* PPP_MAXMRU: Normally limit peer MRU to this
*
* This is the upper limit value to which we set our interface MTU.
* If the peer sends a larger number, we will just ignore it as we
* are not required to maximize the use of the peer capacity.
*
* It only affects PPPoS because PPPoE value is derived from the
* Ethernet interface MTU and PPPoL2TP have a separate setting.
*/
/**
* PPP_MINMRU: No peer MRUs below this
*
* Peer must be able to receive at least our minimum MTU.
*/
/**
* PPPOL2TP_DEFMRU: Default MTU and MRU for L2TP
* Default = 1500 - PPPoE(6) - PPP Protocol(2) - IPv4 header(20) - UDP Header(8)
* - L2TP Header(6) - HDLC Header(2) - PPP Protocol(2) - MPPE Header(2) - PPP Protocol(2)
*/
/* PPPOL2TP_SUPPORT */
/**
* MAXNAMELEN: max length of hostname or name for auth
*/
/**
* MAXSECRETLEN: max length of password or secret
*/
/* ------------------------------------------------------------------------- */
/*
* Build triggers for embedded PolarSSL
*/
/* CHAP, EAP, L2TP AUTH and MD5 Random require MD5 support */
/* CHAP_SUPPORT || EAP_SUPPORT || PPPOL2TP_AUTH_SUPPORT || PPP_MD5_RANDM */
/* MSCHAP require MD4 support */
/* MSCHAP require SHA1 support */
/* MSCHAP require DES support */
/* MS-CHAP support is required for MPPE */
/* MPPE require ARC4 support */
/* MPPE_SUPPORT */
/* MSCHAP_SUPPORT */
/* !LWIP_USE_EXTERNAL_POLARSSL && !LWIP_USE_EXTERNAL_MBEDTLS */
/* Default value if unset */
/* LWIP_INCLUDED_POLARSSL_MD4 */
/* LWIP_INCLUDED_POLARSSL_MD5 */
/* LWIP_INCLUDED_POLARSSL_SHA1 */
/* LWIP_INCLUDED_POLARSSL_DES */
/* LWIP_INCLUDED_POLARSSL_ARC4 */
/* PPP_SUPPORT */
/* Default value if unset */
/* PPP_NUM_TIMEOUTS */
/* LWIP_PPP_OPTS_H */