bufchain_init(&c->v.v2.outbuffer);
void *new_sock_channel(Socket s){    struct ssh_channel *c;    c = smalloc(sizeof(struct ssh_channel));    if (c) {	c->remoteid = -1;	       /* to be set when open confirmed */	c->localid = alloc_channel_id();	c->closes = 0;	c->type = CHAN_SOCKDATA_DORMANT;/* identify channel type */	c->u.pfd.s = s;	add234(ssh_channels, c);    }    return c;}