version 1.187, 2013/06/01 13:15:52 |
version 1.188, 2013/07/12 00:19:58 |
|
|
int |
int |
packet_read_seqnr(u_int32_t *seqnr_p) |
packet_read_seqnr(u_int32_t *seqnr_p) |
{ |
{ |
int type, len, ret, ms_remain, cont; |
int type, len, ret, cont, ms_remain = 0; |
fd_set *setp; |
fd_set *setp; |
char buf[8192]; |
char buf[8192]; |
struct timeval timeout, start, *timeoutp = NULL; |
struct timeval timeout, start, *timeoutp = NULL; |
|
|
} else { |
} else { |
type = packet_read_poll1(); |
type = packet_read_poll1(); |
switch (type) { |
switch (type) { |
|
case SSH_MSG_NONE: |
|
return SSH_MSG_NONE; |
case SSH_MSG_IGNORE: |
case SSH_MSG_IGNORE: |
break; |
break; |
case SSH_MSG_DEBUG: |
case SSH_MSG_DEBUG: |
|
|
cleanup_exit(255); |
cleanup_exit(255); |
break; |
break; |
default: |
default: |
if (type) |
DBG(debug("received packet type %d", type)); |
DBG(debug("received packet type %d", type)); |
|
return type; |
return type; |
} |
} |
} |
} |
|
|
packet_write_wait(void) |
packet_write_wait(void) |
{ |
{ |
fd_set *setp; |
fd_set *setp; |
int ret, ms_remain; |
int ret, ms_remain = 0; |
struct timeval start, timeout, *timeoutp = NULL; |
struct timeval start, timeout, *timeoutp = NULL; |
|
|
setp = (fd_set *)xcalloc(howmany(active_state->connection_out + 1, |
setp = (fd_set *)xcalloc(howmany(active_state->connection_out + 1, |