remote_id = packet_get_int();
x11_input_open(int type, int plen, void *ctxt){	int remote_channel, sock = 0, newch;	char *remote_host;	u_int remote_len;	/* Get remote channel number. */	remote_channel = packet_get_int();	/* Get remote originator name. */	if (have_hostname_in_open) {		remote_host = packet_get_string(&remote_len);		remote_len += 4;	} else {		remote_host = xstrdup("unknown (remote did not supply name)");		remote_len = 0;	}	debug("Received X11 open request.");	packet_integrity_check(plen, 4 + remote_len, SSH_SMSG_X11_OPEN);	/* Obtain a connection to the real X display. */	sock = x11_connect_display();	if (sock == -1) {		/* Send refusal to the remote host. */		packet_start(SSH_MSG_CHANNEL_OPEN_FAILURE);		packet_put_int(remote_channel);		packet_send();	} else {		/* Allocate a channel for this connection. */		newch = channel_allocate(		     (x11_saved_proto == NULL) ?		     SSH_CHANNEL_OPEN : SSH_CHANNEL_X11_OPEN,		     sock, remote_host);		channels[newch].remote_id = remote_channel;		/* Send a confirmation to the remote host. */		packet_start(SSH_MSG_CHANNEL_OPEN_CONFIRMATION);		packet_put_int(remote_channel);		packet_put_int(newch);		packet_send();	}}