control: Queue packets received Out-of-Order
Retransmissions are done very slowly, so we'd really better store the Out-of-Order messages so that we can catch up quickly once we get the missing piece.
This commit is contained in:
parent
3ab80a9d66
commit
85044bc6a4
2 changed files with 91 additions and 12 deletions
2
l2tpns.h
2
l2tpns.h
|
|
@ -275,6 +275,7 @@ typedef struct controls // control message
|
|||
{
|
||||
struct controls *next; // next in queue
|
||||
uint16_t length; // length
|
||||
uint16_t ns; // sequence number
|
||||
uint8_t buf[MAXCONTROL];
|
||||
}
|
||||
controlt;
|
||||
|
|
@ -506,6 +507,7 @@ tunnelt;
|
|||
|
||||
typedef struct
|
||||
{
|
||||
controlt *controlr; // queue of OoO-received messages
|
||||
int l2tp_fd; // kernel acceleration UDP socket
|
||||
}
|
||||
tunnellocalt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue