Make sure to add HDLC header when forwarding over L2TP
This commit is contained in:
parent
7442bddd3d
commit
0c9338b03a
1 changed files with 2 additions and 2 deletions
4
ppp.c
4
ppp.c
|
|
@ -2628,13 +2628,13 @@ uint8_t *makeppp(uint8_t *b, int size, uint8_t *p, int l, sessionidt s, tunnelid
|
|||
bid = 0;
|
||||
}
|
||||
|
||||
if (type == PPPLCP || !(session[s].flags & SESSION_ACFC))
|
||||
if (type == PPPLCP || !(session[s].flags & SESSION_ACFC) || session[s].forwardtosession)
|
||||
{
|
||||
*(uint16_t *) b = htons(0xFF03); // HDLC header
|
||||
b += 2;
|
||||
}
|
||||
|
||||
if (type < 0x100 && session[s].flags & SESSION_PFC)
|
||||
if ((type < 0x100 && session[s].flags & SESSION_PFC) && !session[s].forwardtosession)
|
||||
{
|
||||
*b++ = type;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue