Home | History | Annotate | Download | only in openssh

Lines Matching defs:p_read

181 	struct packet_state p_read, p_send;
243 state->p_send.packets = state->p_read.packets = 0;
336 state->p_read.seqnr,
398 *ibytes = ssh->state->p_read.bytes;
937 state->p_read.packets = state->p_read.blocks = 0;
1518 state->p_read.packets++;
1519 state->p_read.bytes += padded_len + 4;
1565 &state->packlen, state->p_read.seqnr,
1645 if ((r = mac_compute(mac, state->p_read.seqnr,
1653 if ((r = cipher_crypt(&state->receive_context, state->p_read.seqnr, cp,
1664 if ((r = mac_compute(mac, state->p_read.seqnr,
1678 DBG(debug("MAC #%d ok", state->p_read.seqnr));
1683 *seqnr_p = state->p_read.seqnr;
1684 if (++state->p_read.seqnr == 0)
1686 if (++state->p_read.packets == 0)
1689 state->p_read.blocks += (state->packlen + 4) / block_size;
1690 state->p_read.bytes += state->packlen + 4;
2212 (state->p_read.packets > MAX_PACKETS) ||
2216 (state->p_read.blocks > state->max_blocks_in)) ||
2441 (r = sshbuf_put_u32(m, state->p_read.seqnr)) != 0 ||
2442 (r = sshbuf_put_u64(m, state->p_read.blocks)) != 0 ||
2443 (r = sshbuf_put_u32(m, state->p_read.packets)) != 0 ||
2444 (r = sshbuf_put_u64(m, state->p_read.bytes)) != 0)
2630 (r = sshbuf_get_u32(m, &state->p_read.seqnr)) != 0 ||
2631 (r = sshbuf_get_u64(m, &state->p_read.blocks)) != 0 ||
2632 (r = sshbuf_get_u32(m, &state->p_read.packets)) != 0 ||
2633 (r = sshbuf_get_u64(m, &state->p_read.bytes)) != 0)
2640 /* XXX ssh_set_newkeys overrides p_read.packets? XXX */