l2tp: Expose a control receive window > 4
The default 4 is really small, and imposes very sequential processing of reconnections in case we lose all sessions. Nowadays we easily have memory for a lot more.
This commit is contained in:
parent
c12eab7a9c
commit
499677627f
2 changed files with 3 additions and 0 deletions
1
l2tpns.h
1
l2tpns.h
|
|
@ -42,6 +42,7 @@
|
|||
#define T_FREE (0) // A tunnel ID that won't ever be used. Mark session as free.
|
||||
|
||||
#define MAXCONTROL 1000 // max length control message we ever send...
|
||||
#define CONTROLWIN 128 // receive window size, controls the maximum size of controlr
|
||||
#define MINMTU 576 // minimum recommended MTU (rfc1063)
|
||||
#define MAXMTU 2600 // arbitrary maximum MTU
|
||||
#define PPPoE_MRU 1492 // maximum PPPoE MRU (rfc2516: 1500 less PPPoE header (6) and PPP protocol ID (2))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue