Fix: MLPPP complete lost frame.
This commit is contained in:
parent
442b04cea2
commit
43d9ea52f9
1 changed files with 12 additions and 8 deletions
20
ppp.c
20
ppp.c
|
|
@ -1919,18 +1919,22 @@ void processmpin(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
|
|||
else if (M_offset > 0)
|
||||
{
|
||||
uint32_t b_seq = min;
|
||||
if (min == seq_num)
|
||||
if ((min == seq_num) && begin_frame)
|
||||
{
|
||||
if (begin_frame)
|
||||
{
|
||||
// Set new Start sequence
|
||||
this_fragmentation->start_index = begin_index;
|
||||
this_fragmentation->start_seq = min;
|
||||
frag_offset = 0;
|
||||
}
|
||||
// Set new Start sequence
|
||||
this_fragmentation->start_index = begin_index;
|
||||
this_fragmentation->start_seq = min;
|
||||
frag_offset = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (min == seq_num)
|
||||
{
|
||||
M_offset--;
|
||||
begin_index = (begin_index ? (begin_index -1) : (MAXFRAGNUM -1));
|
||||
b_seq--;
|
||||
}
|
||||
|
||||
// Find the Begin sequence
|
||||
while (this_fragmentation->fragment[begin_index].length)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue