Lines Matching refs:writepayload
361 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_CLOSE); in send_msg_channel_close()
362 buf_putint(ses.writepayload, channel->remotechan); in send_msg_channel_close()
380 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_EOF); in send_msg_channel_eof()
381 buf_putint(ses.writepayload, channel->remotechan); in send_msg_channel_eof()
601 ses.writepayload->size - 1 - 4 - 4 - (isextended ? 4 : 0)); in send_msg_channel_data()
608 buf_putbyte(ses.writepayload, in send_msg_channel_data()
610 buf_putint(ses.writepayload, channel->remotechan); in send_msg_channel_data()
612 buf_putint(ses.writepayload, SSH_EXTENDED_DATA_STDERR); in send_msg_channel_data()
615 size_pos = ses.writepayload->pos; in send_msg_channel_data()
616 buf_putint(ses.writepayload, 0); in send_msg_channel_data()
619 len = read(fd, buf_getwriteptr(ses.writepayload, maxlen), maxlen); in send_msg_channel_data()
627 ses.writepayload->len = ses.writepayload->pos = 0; in send_msg_channel_data()
632 buf_incrwritepos(ses.writepayload, len); in send_msg_channel_data()
634 buf_setpos(ses.writepayload, size_pos); in send_msg_channel_data()
635 buf_putint(ses.writepayload, len); in send_msg_channel_data()
745 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_WINDOW_ADJUST); in send_msg_channel_window_adjust()
746 buf_putint(ses.writepayload, channel->remotechan); in send_msg_channel_window_adjust()
747 buf_putint(ses.writepayload, incr); in send_msg_channel_window_adjust()
842 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_FAILURE); in send_msg_channel_failure()
843 buf_putint(ses.writepayload, channel->remotechan); in send_msg_channel_failure()
855 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_SUCCESS); in send_msg_channel_success()
856 buf_putint(ses.writepayload, channel->remotechan); in send_msg_channel_success()
870 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_OPEN_FAILURE); in send_msg_channel_open_failure()
871 buf_putint(ses.writepayload, remotechan); in send_msg_channel_open_failure()
872 buf_putint(ses.writepayload, reason); in send_msg_channel_open_failure()
873 buf_putstring(ses.writepayload, text, strlen((char*)text)); in send_msg_channel_open_failure()
874 buf_putstring(ses.writepayload, lang, strlen((char*)lang)); in send_msg_channel_open_failure()
889 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_OPEN_CONFIRMATION); in send_msg_channel_open_confirmation()
890 buf_putint(ses.writepayload, channel->remotechan); in send_msg_channel_open_confirmation()
891 buf_putint(ses.writepayload, channel->index); in send_msg_channel_open_confirmation()
892 buf_putint(ses.writepayload, recvwindow); in send_msg_channel_open_confirmation()
893 buf_putint(ses.writepayload, recvmaxpacket); in send_msg_channel_open_confirmation()
970 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_OPEN); in send_msg_channel_open_init()
971 buf_putstring(ses.writepayload, type->name, strlen(type->name)); in send_msg_channel_open_init()
972 buf_putint(ses.writepayload, chan->index); in send_msg_channel_open_init()
973 buf_putint(ses.writepayload, RECV_MAXWINDOW); in send_msg_channel_open_init()
974 buf_putint(ses.writepayload, RECV_MAXPACKET); in send_msg_channel_open_init()