|
Lines 39-45
Link Here
|
| 39 |
*/ |
39 |
*/ |
| 40 |
|
40 |
|
| 41 |
#include "includes.h" |
41 |
#include "includes.h" |
| 42 |
RCSID("$OpenBSD: channels.c,v 1.215 2005/06/16 03:38:36 djm Exp $"); |
42 |
RCSID("$OpenBSD: channels.c,v 1.216 2005/06/16 08:00:00 markus Exp $"); |
| 43 |
|
43 |
|
| 44 |
#include "ssh.h" |
44 |
#include "ssh.h" |
| 45 |
#include "ssh1.h" |
45 |
#include "ssh1.h" |
|
Lines 1177-1183
port_open_helper(Channel *c, char *rtype
Link Here
|
| 1177 |
int direct; |
1177 |
int direct; |
| 1178 |
char buf[1024]; |
1178 |
char buf[1024]; |
| 1179 |
char *remote_ipaddr = get_peer_ipaddr(c->sock); |
1179 |
char *remote_ipaddr = get_peer_ipaddr(c->sock); |
| 1180 |
u_short remote_port = get_peer_port(c->sock); |
1180 |
int remote_port = get_peer_port(c->sock); |
| 1181 |
|
1181 |
|
| 1182 |
direct = (strcmp(rtype, "direct-tcpip") == 0); |
1182 |
direct = (strcmp(rtype, "direct-tcpip") == 0); |
| 1183 |
|
1183 |
|
|
Lines 1207-1213
port_open_helper(Channel *c, char *rtype
Link Here
|
| 1207 |
} |
1207 |
} |
| 1208 |
/* originator host and port */ |
1208 |
/* originator host and port */ |
| 1209 |
packet_put_cstring(remote_ipaddr); |
1209 |
packet_put_cstring(remote_ipaddr); |
| 1210 |
packet_put_int(remote_port); |
1210 |
packet_put_int((u_int)remote_port); |
| 1211 |
packet_send(); |
1211 |
packet_send(); |
| 1212 |
} else { |
1212 |
} else { |
| 1213 |
packet_start(SSH_MSG_PORT_OPEN); |
1213 |
packet_start(SSH_MSG_PORT_OPEN); |