Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-stream-ch-vpn
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Show more breadcrumbs
cellframe
libdap-stream-ch-vpn
Commits
6c20c706
Commit
6c20c706
authored
6 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Renames
parent
b4277640
Branches
feature-client-new
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_stream_ch_vpn.c
+3
-3
3 additions, 3 deletions
dap_stream_ch_vpn.c
with
3 additions
and
3 deletions
dap_stream_ch_vpn.c
+
3
−
3
View file @
6c20c706
...
...
@@ -31,7 +31,7 @@
#include
"dap_client_remote.h"
#include
"dap_http_client.h"
#include
"stream.h"
#include
"
dap_
stream.h"
#include
"dap_stream_ch.h"
#include
"dap_stream_ch_proc.h"
#include
"dap_stream_ch_pkt.h"
...
...
@@ -213,7 +213,7 @@ int dap_stream_ch_vpn_init(const char* vpn_addr, const char* vpn_mask)
pthread_cond_init
(
&
sf_socks_cond
,
NULL
);
pthread_create
(
&
sf_socks_raw_pid
,
NULL
,
ch_sf_thread_raw
,
NULL
);
pthread_create
(
&
sf_socks_pid
,
NULL
,
ch_sf_thread
,
NULL
);
stream_ch_proc_add
(
's'
,
ch_sf_new
,
ch_sf_delete
,
ch_sf_packet_in
,
ch_sf_packet_out
);
dap_
stream_ch_proc_add
(
's'
,
ch_sf_new
,
ch_sf_delete
,
ch_sf_packet_in
,
ch_sf_packet_out
);
return
0
;
}
return
0
;
...
...
@@ -427,7 +427,7 @@ int stream_sf_socket_write(ch_vpn_socket_proxy_t * sf, uint8_t op_code, const vo
*/
void
ch_sf_packet_in
(
dap_stream_ch_t
*
ch
,
void
*
arg
)
{
stream_ch_pkt_t
*
pkt
=
(
stream_ch_pkt_t
*
)
arg
;
dap_
stream_ch_pkt_t
*
pkt
=
(
dap_
stream_ch_pkt_t
*
)
arg
;
// log_it(L_DEBUG,"stream_sf_packet_in: channel packet hdr size %lu ( last bytes 0x%02x 0x%02x 0x%02x 0x%02x ) ", pkt->hdr.size,
// *((uint8_t *)pkt->data + pkt->hdr.size-4),*((uint8_t *)pkt->data + pkt->hdr.size-3)
// ,*((uint8_t *)pkt->data + pkt->hdr.size-2),*((uint8_t *)pkt->data + pkt->hdr.size-1)
...
...
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