Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-net-srv-vpn
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-chain-net-srv-vpn
Commits
20df56e3
Commit
20df56e3
authored
5 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[-] Some warnings
parent
f56b1362
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_chain_net_srv_vpn.c
+6
-2
6 additions, 2 deletions
dap_chain_net_srv_vpn.c
with
6 additions
and
2 deletions
dap_chain_net_srv_vpn.c
+
6
−
2
View file @
20df56e3
...
...
@@ -130,7 +130,7 @@ static int s_callback_receipt_next_success(dap_chain_net_srv_t * a_srv, uint32_t
// Tunnel threads
static
void
*
srv_ch_sf_thread
(
void
*
arg
);
static
void
*
srv_ch_sf_thread
(
void
*
a_
arg
);
static
void
*
srv_ch_sf_thread_raw
(
void
*
arg
);
static
void
s_tun_create
(
void
);
static
void
s_tun_destroy
(
void
);
...
...
@@ -1179,8 +1179,9 @@ void srv_stream_sf_disconnect(ch_vpn_socket_proxy_t * sf_sock)
Socket forward
**/
void
*
srv_ch_sf_thread
(
void
*
arg
)
void
*
srv_ch_sf_thread
(
void
*
a_
arg
)
{
UNUSED
(
a_arg
);
struct
epoll_event
ev
,
events
[
SF_MAX_EVENTS
]
=
{
0
};
//pthread_mutex_lock(&sf_socks_mutex);
sf_socks_epoll_fd
=
epoll_create
(
SF_MAX_EVENTS
);
...
...
@@ -1266,6 +1267,7 @@ void * srv_ch_sf_thread(void * arg)
}
//pthread_mutex_unlock(&sf_socks_mutex);
}
return
NULL
;
}
static
volatile
bool
s_srv_ch_sf_thread_raw_is_exit
=
false
;
...
...
@@ -1273,6 +1275,7 @@ static volatile bool s_srv_ch_sf_thread_raw_is_exit = false;
/* Signal handler. */
static
void
s_sig_handle
(
int
sig
)
{
UNUSED
(
sig
);
s_srv_ch_sf_thread_raw_is_exit
=
true
;
}
...
...
@@ -1282,6 +1285,7 @@ static void s_sig_handle (int sig)
**/
void
*
srv_ch_sf_thread_raw
(
void
*
arg
)
{
UNUSED
(
arg
);
s_tun_create
();
if
(
s_raw_server
->
tun_fd
<=
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment