Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
01c1b7ff
Commit
01c1b7ff
authored
Feb 06, 2000
by
Niels Möller
Browse files
* src/tcpforward_commands.c (new_tcpip_channel): Use
format_channel_open(). Rev: src/tcpforward_commands.c:1.18
parent
298d30d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tcpforward_commands.c
View file @
01c1b7ff
...
...
@@ -139,6 +139,7 @@ struct command tcpip_start_io =
static
struct
ssh_channel
*
new_tcpip_channel
(
struct
channel_open_command
*
c
,
struct
ssh_connection
*
connection
,
UINT32
local_channel_number
,
struct
lsh_string
**
request
)
{
CAST
(
open_tcpip_command
,
self
,
c
);
...
...
@@ -152,13 +153,13 @@ new_tcpip_channel(struct channel_open_command *c,
channel
=
make_tcpip_channel
(
self
->
peer
->
fd
,
TCPIP_WINDOW_SIZE
);
channel
->
write
=
connection
->
write
;
REMEMBER_RESOURCE
(
channel
->
resources
,
&
self
->
peer
->
fd
->
super
.
super
);
REMEMBER_RESOURCE
(
channel
->
resources
,
&
self
->
peer
->
fd
->
super
);
*
request
=
prepare
_channel_open
(
connection
,
self
->
type
,
channel
,
"%S%i%S%i"
,
self
->
port
->
ip
,
self
->
port
->
port
,
self
->
peer
->
peer
->
ip
,
self
->
peer
->
peer
->
port
);
*
request
=
format
_channel_open
(
self
->
type
,
local_channel_number
,
channel
,
"%S%i%S%i"
,
self
->
port
->
ip
,
self
->
port
->
port
,
self
->
peer
->
peer
->
ip
,
self
->
peer
->
peer
->
port
);
return
channel
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment