channel_pre_open(Channel *c, fd_set * readset, fd_set * writeset)
{
u_int limit = compat20 ? c->remote_window : packet_get_maxsize();
-
+
/* check buffer limits */
limit = MIN(limit, (BUFFER_MAX_HPN_LEN - BUFFER_MAX_CHUNK - CHAN_RBUF));
case 'R':
addargs(&args, "-r%s", optarg);
break;
- case 'w':
- addargs(&args, "-w%s", optarg);
- break;
default:
usage();
}
/* Parse command-line arguments. */
host = NULL;
-
/* need to set options.tcp_rcv_buf to 0 */
options.tcp_rcv_buf = 0;
break;
case 'b':
options.bind_address = optarg;
+ case 'F':
+ config = optarg;
+ break;
case 'r':
options.tcp_rcv_buf = atoi(optarg) * 1024;
break;
options.none_switch = 1;
}
break;
- case 'F':
- config = optarg;
- break;
default:
usage();
"session", SSH_CHANNEL_OPENING, in, out, err,
window, packetmax, CHAN_EXTENDED_WRITE,
"client-session", /*nonblock*/0);
-
if (!tty_flag && (!(datafellows & SSH_BUG_LARGEWINDOW))) {
c->dynamic_window = 1;
}