• Home
  • Raw
  • Download

Lines Matching refs:ah

208 	struct allocated_headers *ah = wsi->http.ah;  in lws_frag_start()  local
210 if (!ah) { in lws_frag_start()
215 ah->hdr_token_idx = -1; in lws_frag_start()
218 __func__, hdr_token_idx, ah->pos, ah->nfrag); in lws_frag_start()
225 if (ah->nfrag >= LWS_ARRAY_SIZE(ah->frag_index)) { in lws_frag_start()
226 lwsl_err("%s: frag index %d too big\n", __func__, ah->nfrag); in lws_frag_start()
235 ah->frag_index[hdr_token_idx]) { in lws_frag_start()
236 if (!(ah->frags[ah->frag_index[hdr_token_idx]].flags & 1)) { in lws_frag_start()
244 if (ah->nfrag == 0) in lws_frag_start()
245 ah->nfrag = 1; in lws_frag_start()
247 ah->frags[ah->nfrag].offset = ah->pos; in lws_frag_start()
248 ah->frags[ah->nfrag].len = 0; in lws_frag_start()
249 ah->frags[ah->nfrag].nfrag = 0; in lws_frag_start()
250 ah->frags[ah->nfrag].flags = 2; /* we had reason to set it */ in lws_frag_start()
252 ah->hdr_token_idx = hdr_token_idx; in lws_frag_start()
258 if (ah->frag_index[hdr_token_idx]) { in lws_frag_start()
262 n = ah->frag_index[hdr_token_idx]; in lws_frag_start()
263 while (ah->frags[n].nfrag) in lws_frag_start()
264 n = ah->frags[n].nfrag; in lws_frag_start()
266 ah->frags[n].nfrag = ah->nfrag; in lws_frag_start()
268 ah->frag_index[hdr_token_idx] = ah->nfrag; in lws_frag_start()
275 struct allocated_headers *ah = wsi->http.ah; in lws_frag_append() local
277 ah->data[ah->pos++] = (char)c; in lws_frag_append()
278 ah->frags[ah->nfrag].len++; in lws_frag_append()
280 return (unsigned int)ah->pos >= wsi->a.context->max_http_header_data; in lws_frag_append()
290 wsi->http.ah->frags[wsi->http.ah->nfrag].len--; in lws_frag_end()
292 wsi->http.ah->nfrag++; in lws_frag_end()
299 struct allocated_headers *ah = wsi->http.ah; in lws_hdr_extant() local
302 if (!ah) in lws_hdr_extant()
305 n = ah->frag_index[h]; in lws_hdr_extant()
309 return !!(ah->frags[n].flags & 2); in lws_hdr_extant()
828 struct allocated_headers *ah = wsi->http.ah; in lws_hpack_interpret() local
855 ah->parser_state = 255; in lws_hpack_interpret()
1050 ah->parser_state = WSI_TOKEN_NAME_PART; in lws_hpack_interpret()
1051 ah->lextable_pos = 0; in lws_hpack_interpret()
1059 n = ah->parser_state; in lws_hpack_interpret()
1148 if (ah->hdr_token_idx == in lws_hpack_interpret()
1231 ah->parser_state); in lws_hpack_interpret()
1233 if (ah->parser_state == WSI_TOKEN_NAME_PART) { in lws_hpack_interpret()
1241 if (ah->parser_state == WSI_TOKEN_NAME_PART || in lws_hpack_interpret()
1243 ah->parser_state == WSI_TOKEN_UNKNOWN_VALUE_PART || in lws_hpack_interpret()
1245 ah->parser_state == WSI_TOKEN_SKIPPING) { in lws_hpack_interpret()
1247 ah->parser_state = 0xff; in lws_hpack_interpret()
1290 m = ah->parser_state; in lws_hpack_interpret()
1292 ah->parser_state == WSI_TOKEN_NAME_PART || in lws_hpack_interpret()
1293 ah->parser_state == WSI_TOKEN_SKIPPING) { in lws_hpack_interpret()
1297 ah->parser_state, in lws_hpack_interpret()
1312 ah->frags[ah->nfrag].flags |= 1; in lws_hpack_interpret()
1315 &ah->data[ah->frags[ah->nfrag].offset], in lws_hpack_interpret()
1316 ah->frags[ah->nfrag].len)) { in lws_hpack_interpret()
1334 m = ah->parser_state; in lws_hpack_interpret()