Add L2TP offloading support

Fixes #13

Also-by: Dominique Martinet <asmadeus@codewreck.org>
This commit is contained in:
Samuel Thibault 2023-04-23 13:50:04 +02:00
parent 13d7080ac1
commit a9e18411d3
8 changed files with 715 additions and 35 deletions

View file

@ -1364,14 +1364,7 @@ static int cluster_recv_tunnel(int more, uint8_t *p)
}
}
memcpy(&tunnel[more], p, sizeof(tunnel[more]) );
//
// Clear tunnel control messages. These are dynamically allocated.
// If we get unlucky, this may cause the tunnel to drop!
//
tunnel[more].controls = tunnel[more].controle = NULL;
tunnel[more].controlc = 0;
load_tunnel(more, (tunnelt *) p); // Copy tunnel into tunnel table..
LOG(5, 0, more, "Received tunnel update\n");