Lines Matching refs:flen

1228         const uint32_t flen = h2_u24(s+n);  in h2_recv_continuation()  local
1233 if (flen > fsize) { in h2_recv_continuation()
1237 n += 9+flen; in h2_recv_continuation()
1279 const uint32_t flen = h2_u24(s); in h2_recv_continuation() local
1280 if (flen < 1 + plen + ((s[n+4] & H2_FLAG_PRIORITY) ? 5 : 0)) { in h2_recv_continuation()
1307 const uint32_t flen = h2_u24(s+n); in h2_recv_continuation() local
1309 if (clen < n+9+flen) { in h2_recv_continuation()
1315 memmove(s+m, s+n+9, flen); in h2_recv_continuation()
1316 m += flen; in h2_recv_continuation()
1317 n += 9+flen; in h2_recv_continuation()
1503 h2_recv_headers (connection * const con, uint8_t * const s, uint32_t flen) in h2_recv_headers() argument
1568 uint32_t alen = flen; in h2_recv_headers()
1729 uint32_t flen = h2_u24(s); in h2_parse_frames() local
1730 if (flen > fsize) { in h2_parse_frames()
1739 if (cqlen < 9+flen) return 1; /* incomplete frame; go on */ in h2_parse_frames()
1740 if (clen < 9+flen) { in h2_parse_frames()
1741 clen = h2_frame_cq_compact(cq, 9+flen); in h2_parse_frames()
1750 clen = h2_recv_continuation(9+flen, clen, cqlen, cq, con); in h2_parse_frames()
1757 flen = h2_u24(s); in h2_parse_frames()
1770 int rc = h2_recv_headers(con, s, flen); in h2_parse_frames()
1771 cqlen -= (9+flen); in h2_parse_frames()
1773 chunkqueue_mark_written(cq, 9+flen); in h2_parse_frames()
1785 if (cqlen < 9+flen) return 1; /* incomplete frame; go on */ in h2_parse_frames()
1788 if (!h2_recv_data(con, s, flen)) in h2_parse_frames()
1790 cqlen -= (9+flen); in h2_parse_frames()
1806 if (cqlen < 9+flen) return 1; /* incomplete frame; go on */ in h2_parse_frames()
1807 if (clen < 9+flen) { in h2_parse_frames()
1808 clen = h2_frame_cq_compact(cq, 9+flen); UNUSED(clen); in h2_parse_frames()
1814 h2_recv_window_update(con, s, flen); in h2_parse_frames()
1817 h2_recv_priority_update(con, s, flen); in h2_parse_frames()
1820 h2_recv_settings(con, s, flen); in h2_parse_frames()
1823 h2_recv_ping(con, s, flen); in h2_parse_frames()
1826 h2_recv_rst_stream(con, s, flen); in h2_parse_frames()
1829 if (!h2_recv_goaway(con, s, flen)) return 0; in h2_parse_frames()
1832 h2_recv_priority(con, s, flen); in h2_parse_frames()
1841 cqlen -= (9+flen); in h2_parse_frames()
1842 chunkqueue_mark_written(cq, 9+flen); in h2_parse_frames()
1868 uint32_t flen = h2_u24(s); in h2_want_read() local
1869 if (clen < 9+flen) return 1; in h2_want_read()
1876 for (uint32_t n = 9+flen; cqlen >= n+9; n += 9+flen) { in h2_want_read()
1882 flen = h2_u24(s+n); in h2_want_read()
1883 if (cqlen < n+9+flen) return 1; /* incomplete frame; go on */ in h2_want_read()