Home
last modified time | relevance | path

Searched refs:payloadlen (Results 1 – 17 of 17) sorted by relevance

/third_party/nghttp2/lib/
Dnghttp2_frame.c229 size_t payloadlen = 0; in nghttp2_frame_origin_init() local
233 payloadlen += 2 + ov[i].origin_len; in nghttp2_frame_origin_init()
236 nghttp2_frame_hd_init(&frame->hd, payloadlen, NGHTTP2_ORIGIN, in nghttp2_frame_origin_init()
533 size_t payloadlen, in nghttp2_frame_unpack_settings_payload2() argument
537 *niv_ptr = payloadlen / NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH; in nghttp2_frame_unpack_settings_payload2()
672 size_t payloadlen, nghttp2_mem *mem) { in nghttp2_frame_unpack_goaway_payload2() argument
676 if (payloadlen > 8) { in nghttp2_frame_unpack_goaway_payload2()
677 var_gift_payloadlen = payloadlen - 8; in nghttp2_frame_unpack_goaway_payload2()
761 size_t payloadlen) { in nghttp2_frame_unpack_altsvc_payload() argument
775 altsvc->field_value_len = (size_t)(payload + payloadlen - p); in nghttp2_frame_unpack_altsvc_payload()
[all …]
Dnghttp2_frame.h238 size_t payloadlen, nghttp2_mem *mem);
338 size_t payloadlen, nghttp2_mem *mem);
378 size_t payloadlen);
395 size_t payloadlen, nghttp2_mem *mem);
426 size_t payloadlen, nghttp2_mem *mem);
450 size_t payloadlen);
Dnghttp2_session.c7743 ssize_t payloadlen; in nghttp2_session_pack_data() local
7754 payloadlen = session->callbacks.read_length_callback( in nghttp2_session_pack_data()
7759 DEBUGF("send: read_length_callback=%zd\n", payloadlen); in nghttp2_session_pack_data()
7761 payloadlen = nghttp2_session_enforce_flow_control_limits(session, stream, in nghttp2_session_pack_data()
7762 payloadlen); in nghttp2_session_pack_data()
7764 DEBUGF("send: read_length_callback after flow control=%zd\n", payloadlen); in nghttp2_session_pack_data()
7766 if (payloadlen <= 0) { in nghttp2_session_pack_data()
7770 if ((size_t)payloadlen > nghttp2_buf_avail(buf)) { in nghttp2_session_pack_data()
7774 (size_t)(NGHTTP2_FRAME_HDLEN + 1 + payloadlen)); in nghttp2_session_pack_data()
7780 payloadlen = (ssize_t)datamax; in nghttp2_session_pack_data()
[all …]
/third_party/node/deps/nghttp2/lib/
Dnghttp2_frame.c229 size_t payloadlen = 0; in nghttp2_frame_origin_init() local
233 payloadlen += 2 + ov[i].origin_len; in nghttp2_frame_origin_init()
236 nghttp2_frame_hd_init(&frame->hd, payloadlen, NGHTTP2_ORIGIN, in nghttp2_frame_origin_init()
508 size_t payloadlen, in nghttp2_frame_unpack_settings_payload2() argument
512 *niv_ptr = payloadlen / NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH; in nghttp2_frame_unpack_settings_payload2()
647 size_t payloadlen, nghttp2_mem *mem) { in nghttp2_frame_unpack_goaway_payload2() argument
651 if (payloadlen > 8) { in nghttp2_frame_unpack_goaway_payload2()
652 var_gift_payloadlen = payloadlen - 8; in nghttp2_frame_unpack_goaway_payload2()
657 payloadlen -= var_gift_payloadlen; in nghttp2_frame_unpack_goaway_payload2()
738 size_t payloadlen) { in nghttp2_frame_unpack_altsvc_payload() argument
[all …]
Dnghttp2_frame.h237 size_t payloadlen, nghttp2_mem *mem);
337 size_t payloadlen, nghttp2_mem *mem);
377 size_t payloadlen);
394 size_t payloadlen, nghttp2_mem *mem);
425 size_t payloadlen, nghttp2_mem *mem);
Dnghttp2_session.c7120 ssize_t payloadlen; in nghttp2_session_pack_data() local
7131 payloadlen = session->callbacks.read_length_callback( in nghttp2_session_pack_data()
7136 DEBUGF("send: read_length_callback=%zd\n", payloadlen); in nghttp2_session_pack_data()
7138 payloadlen = nghttp2_session_enforce_flow_control_limits(session, stream, in nghttp2_session_pack_data()
7139 payloadlen); in nghttp2_session_pack_data()
7141 DEBUGF("send: read_length_callback after flow control=%zd\n", payloadlen); in nghttp2_session_pack_data()
7143 if (payloadlen <= 0) { in nghttp2_session_pack_data()
7147 if ((size_t)payloadlen > nghttp2_buf_avail(buf)) { in nghttp2_session_pack_data()
7151 (size_t)(NGHTTP2_FRAME_HDLEN + 1 + payloadlen)); in nghttp2_session_pack_data()
7157 payloadlen = (ssize_t)datamax; in nghttp2_session_pack_data()
[all …]
/third_party/nghttp2/tests/
Dnghttp2_frame_test.c462 size_t payloadlen; in test_nghttp2_frame_pack_altsvc() local
486 payloadlen = 2 + sizeof(origin) - 1 + sizeof(field_value) - 1; in test_nghttp2_frame_pack_altsvc()
491 CU_ASSERT(NGHTTP2_FRAME_HDLEN + payloadlen == nghttp2_bufs_len(&bufs)); in test_nghttp2_frame_pack_altsvc()
497 check_frame_header(payloadlen, NGHTTP2_ALTSVC, NGHTTP2_FLAG_NONE, 1000000007, in test_nghttp2_frame_pack_altsvc()
517 size_t payloadlen; in test_nghttp2_frame_pack_origin() local
545 payloadlen = 2 + sizeof(example) - 1 + 2 + 2 + sizeof(nghttp2) - 1; in test_nghttp2_frame_pack_origin()
550 CU_ASSERT(NGHTTP2_FRAME_HDLEN + payloadlen == nghttp2_bufs_len(&bufs)); in test_nghttp2_frame_pack_origin()
556 check_frame_header(payloadlen, NGHTTP2_ORIGIN, NGHTTP2_FLAG_NONE, 0, in test_nghttp2_frame_pack_origin()
570 (uint16_t)(payloadlen - 1)); in test_nghttp2_frame_pack_origin()
608 size_t payloadlen; in test_nghttp2_frame_pack_priority_update() local
[all …]
Dnghttp2_test_helper.c46 size_t payloadlen = len - NGHTTP2_FRAME_HDLEN; in unpack_frame() local
67 &frame->settings.iv, &frame->settings.niv, payload, payloadlen, mem); in unpack_frame()
77 nghttp2_frame_unpack_goaway_payload2(&frame->goaway, payload, payloadlen, in unpack_frame()
84 assert(payloadlen > 2); in unpack_frame()
85 nghttp2_frame_unpack_altsvc_payload2(&frame->ext, payload, payloadlen, mem); in unpack_frame()
88 rv = nghttp2_frame_unpack_origin_payload(&frame->ext, payload, payloadlen, in unpack_frame()
92 assert(payloadlen >= 4); in unpack_frame()
94 &frame->ext, (uint8_t *)payload, payloadlen); in unpack_frame()
Dnghttp2_session_test.c1994 uint32_t payloadlen; in test_nghttp2_session_recv_premature_headers() local
2011 payloadlen = nghttp2_get_uint32(buf->pos) >> 8; in test_nghttp2_session_recv_premature_headers()
2012 nghttp2_put_uint32be(buf->pos, ((payloadlen - 1) << 8) + buf->pos[3]); in test_nghttp2_session_recv_premature_headers()
2042 payloadlen = nghttp2_get_uint32(buf->pos) >> 8; in test_nghttp2_session_recv_premature_headers()
2044 nghttp2_put_uint32be(buf->pos, ((payloadlen - 1) << 8) + buf->pos[3]); in test_nghttp2_session_recv_premature_headers()
5248 size_t payloadlen; in test_nghttp2_submit_data_read_length_too_large() local
5304 payloadlen = nghttp2_min(NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE, in test_nghttp2_submit_data_read_length_too_large()
5307 CU_ASSERT(NGHTTP2_FRAME_HDLEN + 1 + payloadlen == in test_nghttp2_submit_data_read_length_too_large()
5311 CU_ASSERT(payloadlen == hd.length); in test_nghttp2_submit_data_read_length_too_large()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Deap_server_sake.c290 const u8 *payload, size_t payloadlen) in eap_sake_process_identity() argument
304 const u8 *payload, size_t payloadlen) in eap_sake_process_challenge() argument
314 if (eap_sake_parse_attributes(payload, payloadlen, &attr)) in eap_sake_process_challenge()
375 const u8 *payload, size_t payloadlen) in eap_sake_process_confirm() argument
385 if (eap_sake_parse_attributes(payload, payloadlen, &attr)) in eap_sake_process_confirm()
413 const u8 *payload, size_t payloadlen) in eap_sake_process_auth_reject() argument
Deap_server_eke.c422 const u8 *payload, size_t payloadlen) in eap_eke_process_identity() argument
435 end = payload + payloadlen; in eap_eke_process_identity()
517 const u8 *payload, size_t payloadlen) in eap_eke_process_commit() argument
530 end = payload + payloadlen; in eap_eke_process_commit()
590 const u8 *payload, size_t payloadlen) in eap_eke_process_confirm() argument
605 if (payloadlen < (size_t) data->sess.pnonce_len + data->sess.prf_len) { in eap_eke_process_confirm()
664 const u8 *payload, size_t payloadlen) in eap_eke_process_failure() argument
670 if (payloadlen < 4) { in eap_eke_process_failure()
Deap_server_gpsk.c241 const u8 *payload, size_t payloadlen) in eap_gpsk_process_gpsk_2() argument
255 end = payload + payloadlen; in eap_gpsk_process_gpsk_2()
473 const u8 *payload, size_t payloadlen) in eap_gpsk_process_gpsk_4() argument
486 end = payload + payloadlen; in eap_gpsk_process_gpsk_4()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Deap_server_sake.c290 const u8 *payload, size_t payloadlen) in eap_sake_process_identity() argument
304 const u8 *payload, size_t payloadlen) in eap_sake_process_challenge() argument
314 if (eap_sake_parse_attributes(payload, payloadlen, &attr)) in eap_sake_process_challenge()
375 const u8 *payload, size_t payloadlen) in eap_sake_process_confirm() argument
385 if (eap_sake_parse_attributes(payload, payloadlen, &attr)) in eap_sake_process_confirm()
413 const u8 *payload, size_t payloadlen) in eap_sake_process_auth_reject() argument
Deap_server_eke.c422 const u8 *payload, size_t payloadlen) in eap_eke_process_identity() argument
435 end = payload + payloadlen; in eap_eke_process_identity()
517 const u8 *payload, size_t payloadlen) in eap_eke_process_commit() argument
530 end = payload + payloadlen; in eap_eke_process_commit()
590 const u8 *payload, size_t payloadlen) in eap_eke_process_confirm() argument
605 if (payloadlen < (size_t) data->sess.pnonce_len + data->sess.prf_len) { in eap_eke_process_confirm()
665 const u8 *payload, size_t payloadlen) in eap_eke_process_failure() argument
671 if (payloadlen < 4) { in eap_eke_process_failure()
Deap_server_gpsk.c241 const u8 *payload, size_t payloadlen) in eap_gpsk_process_gpsk_2() argument
255 end = payload + payloadlen; in eap_gpsk_process_gpsk_2()
474 const u8 *payload, size_t payloadlen) in eap_gpsk_process_gpsk_4() argument
487 end = payload + payloadlen; in eap_gpsk_process_gpsk_4()
/third_party/nghttp2/src/
Dh2load_http3_session.cc191 auto payloadlen = nghttp3_conn_get_frame_payload_left(conn_, stream_id); in begin_headers() local
192 assert(payloadlen > 0); in begin_headers()
194 client_->worker->stats.bytes_head += payloadlen; in begin_headers()
/third_party/libcoap/src/
Dnet.c2254 const size_t payloadlen = resp->max_size - resp->used_size; in coap_wellknown_response() local
2259 while (payloadlen < SZX_TO_BYTES(block.szx) + 6) { in coap_wellknown_response()