Create socket for PPPoE

This commit is contained in:
Tassilo Schweyer 2025-04-22 14:02:55 +02:00
parent 9425c725c9
commit ace7452145
2 changed files with 32 additions and 0 deletions

View file

@ -1023,6 +1023,10 @@ static int create_kernel_pppox(sessionidt s)
{
tunnelidt t = session[s].tunnel;
if (t == TUNNEL_ID_PPPOE) {
return create_kernel_pppoe_socket(s);
}
if (tunn_local[t].l2tp_fd < 0)
/* Tunnel not set up yet */
return -1;