305 |
#define SLIPIF_THREAD_PRIO 1 |
#define SLIPIF_THREAD_PRIO 1 |
306 |
#endif |
#endif |
307 |
|
|
308 |
|
#ifndef PPP_THREAD_PRIO |
309 |
|
#define PPP_THREAD_PRIO 1 |
310 |
|
#endif |
311 |
|
|
312 |
#ifndef DEFAULT_THREAD_PRIO |
#ifndef DEFAULT_THREAD_PRIO |
313 |
#define DEFAULT_THREAD_PRIO 1 |
#define DEFAULT_THREAD_PRIO 1 |
314 |
#endif |
#endif |
331 |
|
|
332 |
#endif /* LWIP_STATS */ |
#endif /* LWIP_STATS */ |
333 |
|
|
334 |
|
/* ---------- PPP options ---------- */ |
335 |
|
|
336 |
|
#ifndef PPP_SUPPORT |
337 |
|
#define PPP_SUPPORT 0 /* Set for PPP */ |
338 |
|
#endif |
339 |
|
|
340 |
|
#if PPP_SUPPORT |
341 |
|
|
342 |
|
#define NUM_PPP 1 /* Max PPP sessions. */ |
343 |
|
|
344 |
|
|
345 |
|
|
346 |
|
#ifndef PAP_SUPPORT |
347 |
|
#define PAP_SUPPORT 0 /* Set for PAP. */ |
348 |
|
#endif |
349 |
|
|
350 |
|
#ifndef CHAP_SUPPORT |
351 |
|
#define CHAP_SUPPORT 0 /* Set for CHAP. */ |
352 |
|
#endif |
353 |
|
|
354 |
|
#define MSCHAP_SUPPORT 0 /* Set for MSCHAP (NOT FUNCTIONAL!) */ |
355 |
|
#define CBCP_SUPPORT 0 /* Set for CBCP (NOT FUNCTIONAL!) */ |
356 |
|
#define CCP_SUPPORT 0 /* Set for CCP (NOT FUNCTIONAL!) */ |
357 |
|
|
358 |
|
#ifndef VJ_SUPPORT |
359 |
|
#define VJ_SUPPORT 0 /* Set for VJ header compression. */ |
360 |
|
#endif |
361 |
|
|
362 |
|
#ifndef MD5_SUPPORT |
363 |
|
#define MD5_SUPPORT 0 /* Set for MD5 (see also CHAP) */ |
364 |
|
#endif |
365 |
|
|
366 |
|
|
367 |
|
/* |
368 |
|
* Timeouts. |
369 |
|
*/ |
370 |
|
#define FSM_DEFTIMEOUT 6 /* Timeout time in seconds */ |
371 |
|
#define FSM_DEFMAXTERMREQS 2 /* Maximum Terminate-Request transmissions */ |
372 |
|
#define FSM_DEFMAXCONFREQS 10 /* Maximum Configure-Request transmissions */ |
373 |
|
#define FSM_DEFMAXNAKLOOPS 5 /* Maximum number of nak loops */ |
374 |
|
|
375 |
|
#define UPAP_DEFTIMEOUT 6 /* Timeout (seconds) for retransmitting req */ |
376 |
|
#define UPAP_DEFREQTIME 30 /* Time to wait for auth-req from peer */ |
377 |
|
|
378 |
|
#define CHAP_DEFTIMEOUT 6 /* Timeout time in seconds */ |
379 |
|
#define CHAP_DEFTRANSMITS 10 /* max # times to send challenge */ |
380 |
|
|
381 |
|
|
382 |
|
/* Interval in seconds between keepalive echo requests, 0 to disable. */ |
383 |
|
#if 1 |
384 |
|
#define LCP_ECHOINTERVAL 0 |
385 |
|
#else |
386 |
|
#define LCP_ECHOINTERVAL 10 |
387 |
|
#endif |
388 |
|
|
389 |
|
/* Number of unanswered echo requests before failure. */ |
390 |
|
#define LCP_MAXECHOFAILS 3 |
391 |
|
|
392 |
|
/* Max Xmit idle time (in jiffies) before resend flag char. */ |
393 |
|
#define PPP_MAXIDLEFLAG 100 |
394 |
|
|
395 |
|
/* |
396 |
|
* Packet sizes |
397 |
|
* |
398 |
|
* Note - lcp shouldn't be allowed to negotiate stuff outside these |
399 |
|
* limits. See lcp.h in the pppd directory. |
400 |
|
* (XXX - these constants should simply be shared by lcp.c instead |
401 |
|
* of living in lcp.h) |
402 |
|
*/ |
403 |
|
#define PPP_MTU 1500 /* Default MTU (size of Info field) */ |
404 |
|
#if 0 |
405 |
|
#define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN) |
406 |
|
#else |
407 |
|
#define PPP_MAXMTU 1500 /* Largest MTU we allow */ |
408 |
|
#endif |
409 |
|
#define PPP_MINMTU 64 |
410 |
|
#define PPP_MRU 1500 /* default MRU = max length of info field */ |
411 |
|
#define PPP_MAXMRU 1500 /* Largest MRU we allow */ |
412 |
|
#define PPP_DEFMRU 296 /* Try for this */ |
413 |
|
#define PPP_MINMRU 128 /* No MRUs below this */ |
414 |
|
|
415 |
|
|
416 |
|
#define MAXNAMELEN 256 /* max length of hostname or name for auth */ |
417 |
|
#define MAXSECRETLEN 256 /* max length of password or secret */ |
418 |
|
|
419 |
|
#endif /* PPP_SUPPORT */ |
420 |
|
|
421 |
|
|
422 |
/* Debugging options all default to off */ |
/* Debugging options all default to off */ |
423 |
|
|
424 |
#ifndef DBG_TYPES_ON |
#ifndef DBG_TYPES_ON |