mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 23:15:37 +00:00
PPP, L2TP, added configurable L2TP MRU using opt.h
This commit is contained in:
parent
29ba3df717
commit
fa44cef27b
@ -2316,6 +2316,17 @@
|
||||
#define PPP_MINMRU 128 /* No MRUs below this */
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 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)
|
||||
*/
|
||||
#if PPPOL2TP_SUPPORT
|
||||
#ifndef PPPOL2TP_DEFMRU
|
||||
#define PPPOL2TP_DEFMRU 1450
|
||||
#endif
|
||||
#endif /* PPPOL2TP_SUPPORT */
|
||||
|
||||
#ifndef MAXNAMELEN
|
||||
#define MAXNAMELEN 256 /* max length of hostname or name for auth */
|
||||
#endif
|
||||
|
@ -285,13 +285,13 @@ static err_t pppol2tp_connect(ppp_pcb *ppp, void *ctx) {
|
||||
ppp_clear(ppp);
|
||||
|
||||
lcp_wo = &ppp->lcp_wantoptions;
|
||||
lcp_wo->mru = 1500; /* FIXME: MTU depends if we support IP fragmentation or not */
|
||||
lcp_wo->mru = PPPOL2TP_DEFMRU;
|
||||
lcp_wo->neg_asyncmap = 0;
|
||||
lcp_wo->neg_pcompression = 0;
|
||||
lcp_wo->neg_accompression = 0;
|
||||
|
||||
lcp_ao = &ppp->lcp_allowoptions;
|
||||
lcp_ao->mru = 1500; /* FIXME: MTU depends if we support IP fragmentation or not */
|
||||
lcp_ao->mru = PPPOL2TP_DEFMRU;
|
||||
lcp_ao->neg_asyncmap = 0;
|
||||
lcp_ao->neg_pcompression = 0;
|
||||
lcp_ao->neg_accompression = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user