l2tplac: fast-forward session that triggered tunnel creation
Previously, when we got a call to be forwarded to another LNS and we didn't have a tunnel to it yet, we would wait for a PAP/CHAP re-send to trigger the creation of a session in the fresh tunnel. We do not have to wait, we can trigger that on SCCCN ack.
This commit is contained in:
parent
b409fb7b9d
commit
b5c198ae87
3 changed files with 14 additions and 1 deletions
7
l2tpns.c
7
l2tpns.c
|
|
@ -4289,6 +4289,13 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr, uint16_t indexu
|
|||
LOG(3, s, t, "REMOTE LNS acked our SCCCN %d\n", tunn_local[t].scccn);
|
||||
tunn_local[t].scccn = -1;
|
||||
tunnel[t].state = TUNNELOPEN;
|
||||
|
||||
if (tunn_local[t].initialsession)
|
||||
{
|
||||
// Forward the call that triggered the tunnel creation
|
||||
lac_create_session(t, tunn_local[t].initialsession, tunn_local[t].initialuser);
|
||||
tunn_local[t].initialsession = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (l)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue