projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
442b04c
)
Fix: MLPPP complete lost frame.
author
Fernando Alves
<fernando.alves@sameswireless.fr>
Sat, 4 Feb 2012 17:18:26 +0000
(18:18 +0100)
committer
Benjamin Cama
<benoar@dolka.fr>
Sat, 4 Feb 2012 17:18:26 +0000
(18:18 +0100)
ppp.c
patch
|
blob
|
history
diff --git
a/ppp.c
b/ppp.c
index
9661d5c
..
e805e22
100644
(file)
--- a/
ppp.c
+++ b/
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;
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
{
}
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)
{
// Find the Begin sequence
while (this_fragmentation->fragment[begin_index].length)
{