char buf[1024];
void ssh_send_port_open(void *channel, char *hostname, int port, char *org){    struct ssh_channel *c = (struct ssh_channel *)channel;    Ssh ssh = c->ssh;    char buf[1024];    sprintf(buf, "Opening forwarded connection to %.512s:%d", hostname, port);    logevent(buf);    if (ssh->version == 1) {	send_packet(ssh, SSH1_MSG_PORT_OPEN,		    PKT_INT, c->localid,		    PKT_STR, hostname,		    PKT_INT, port,		    //PKT_STR, <org:orgport>,		    PKT_END);    } else {	ssh2_pkt_init(ssh, SSH2_MSG_CHANNEL_OPEN);	ssh2_pkt_addstring(ssh, "direct-tcpip");	ssh2_pkt_adduint32(ssh, c->localid);	c->v.v2.locwindow = OUR_V2_WINSIZE;	ssh2_pkt_adduint32(ssh, c->v.v2.locwindow);/* our window size */	ssh2_pkt_adduint32(ssh, 0x4000UL);      /* our max pkt size */	ssh2_pkt_addstring(ssh, hostname);	ssh2_pkt_adduint32(ssh, port);	/*	 * We make up values for the originator data; partly it's	 * too much hassle to keep track, and partly I'm not	 * convinced the server should be told details like that	 * about my local network configuration.	 */	ssh2_pkt_addstring(ssh, "client-side-connection");	ssh2_pkt_adduint32(ssh, 0);	ssh2_pkt_send(ssh);    }}