Lines Matching refs:packlen
202 u_int packlen; member
1686 if (state->packlen == 0) { in ssh_packet_read_poll2_mux()
1689 state->packlen = PEEK_U32(cp); in ssh_packet_read_poll2_mux()
1690 if (state->packlen < 4 + 1 || in ssh_packet_read_poll2_mux()
1691 state->packlen > PACKET_MAX_SIZE) in ssh_packet_read_poll2_mux()
1694 need = state->packlen + 4; in ssh_packet_read_poll2_mux()
1699 state->packlen)) != 0 || in ssh_packet_read_poll2_mux()
1708 state->packlen = 0; in ssh_packet_read_poll2_mux()
1744 if (aadlen && state->packlen == 0) { in ssh_packet_read_poll2()
1746 &state->packlen, state->p_read.seqnr, in ssh_packet_read_poll2()
1749 if (state->packlen < 1 + 4 || in ssh_packet_read_poll2()
1750 state->packlen > PACKET_MAX_SIZE) { in ssh_packet_read_poll2()
1754 logit("Bad packet length %u.", state->packlen); in ssh_packet_read_poll2()
1760 } else if (state->packlen == 0) { in ssh_packet_read_poll2()
1775 state->packlen = PEEK_U32(sshbuf_ptr(state->incoming_packet)); in ssh_packet_read_poll2()
1776 if (state->packlen < 1 + 4 || in ssh_packet_read_poll2()
1777 state->packlen > PACKET_MAX_SIZE) { in ssh_packet_read_poll2()
1784 logit("Bad packet length %u.", state->packlen); in ssh_packet_read_poll2()
1791 DBG(debug("input: packet len %u", state->packlen+4)); in ssh_packet_read_poll2()
1795 need = state->packlen; in ssh_packet_read_poll2()
1801 need = 4 + state->packlen - block_size; in ssh_packet_read_poll2()
1871 state->p_read.blocks += (state->packlen + 4) / block_size; in ssh_packet_read_poll2()
1872 state->p_read.bytes += state->packlen + 4; in ssh_packet_read_poll2()
1932 state->packlen = 0; in ssh_packet_read_poll2()