TAILQ_INIT(&outgoing);
packet_set_connection(int fd_in, int fd_out){	Cipher *none = cipher_by_name("none");	if (none == NULL)		fatal("packet_set_connection: cannot load cipher 'none'");	connection_in = fd_in;	connection_out = fd_out;	cipher_init(&send_context, none, "", 0, NULL, 0, CIPHER_ENCRYPT);	cipher_init(&receive_context, none, "", 0, NULL, 0, CIPHER_DECRYPT);	newkeys[MODE_IN] = newkeys[MODE_OUT] = NULL;	if (!initialized) {		initialized = 1;		buffer_init(&input);		buffer_init(&output);		buffer_init(&outgoing_packet);		buffer_init(&incoming_packet);	}	/* Kludge: arrange the close function to be called from fatal(). */	fatal_add_cleanup((void (*) (void *)) packet_close, NULL);}