Add L2TP offloading support
Fixes #13 Also-by: Dominique Martinet <asmadeus@codewreck.org>
This commit is contained in:
parent
13d7080ac1
commit
a9e18411d3
8 changed files with 715 additions and 35 deletions
12
util.c
12
util.c
|
|
@ -127,6 +127,18 @@ pid_t fork_and_close()
|
|||
if (pppoediscfd != -1) close(pppoediscfd);
|
||||
if (pppoesessfd != -1) close(pppoesessfd);
|
||||
|
||||
for (i = 0; i <= config->cluster_highest_tunnelid; i++)
|
||||
{
|
||||
if (tunn_local[i].l2tp_fd >= 0) close(tunn_local[i].l2tp_fd);
|
||||
}
|
||||
|
||||
for (i = 0; i <= config->cluster_highest_sessionid; i++)
|
||||
{
|
||||
if (sess_local[i].pppox_fd >= 0) close(sess_local[i].pppox_fd);
|
||||
if (sess_local[i].ppp_chan_fd >= 0) close(sess_local[i].ppp_chan_fd);
|
||||
if (sess_local[i].ppp_if_fd >= 0) close(sess_local[i].ppp_if_fd);
|
||||
}
|
||||
|
||||
if (snoopfd != -1) close(snoopfd);
|
||||
if (rand_fd != -1) close(rand_fd);
|
||||
if (epollfd != -1) close(epollfd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue