Create socket for PPPoE
This commit is contained in:
parent
9425c725c9
commit
ace7452145
2 changed files with 32 additions and 0 deletions
4
l2tpns.c
4
l2tpns.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue