Home
last modified time | relevance | path

Searched refs:origin_len (Results 1 – 15 of 15) sorted by relevance

/third_party/nghttp2/lib/
Dnghttp2_submit.c504 size_t origin_len, const uint8_t *field_value, in nghttp2_submit_altsvc() argument
522 if (2 + origin_len + field_value_len > NGHTTP2_MAX_PAYLOADLEN) { in nghttp2_submit_altsvc()
527 if (origin_len == 0) { in nghttp2_submit_altsvc()
530 } else if (origin_len != 0) { in nghttp2_submit_altsvc()
534 buf = nghttp2_mem_malloc(mem, origin_len + field_value_len + 2); in nghttp2_submit_altsvc()
542 if (origin_len) { in nghttp2_submit_altsvc()
543 p = nghttp2_cpymem(p, origin, origin_len); in nghttp2_submit_altsvc()
568 nghttp2_frame_altsvc_init(&frame->ext, stream_id, origin_copy, origin_len, in nghttp2_submit_altsvc()
608 len += ov[i].origin_len; in nghttp2_submit_origin()
626 ov_copy[i].origin_len = ov[i].origin_len; in nghttp2_submit_origin()
[all …]
Dnghttp2_frame.c200 uint8_t *origin, size_t origin_len, in nghttp2_frame_altsvc_init() argument
204 nghttp2_frame_hd_init(&frame->hd, 2 + origin_len + field_value_len, in nghttp2_frame_altsvc_init()
209 altsvc->origin_len = origin_len; in nghttp2_frame_altsvc_init()
233 payloadlen += 2 + ov[i].origin_len; in nghttp2_frame_origin_init()
728 2 + altsvc->origin_len + altsvc->field_value_len); in nghttp2_frame_pack_altsvc()
734 nghttp2_put_uint16be(buf->last, (uint16_t)altsvc->origin_len); in nghttp2_frame_pack_altsvc()
737 rv = nghttp2_bufs_add(bufs, altsvc->origin, altsvc->origin_len); in nghttp2_frame_pack_altsvc()
747 size_t origin_len, uint8_t *payload, in nghttp2_frame_unpack_altsvc_payload() argument
757 p += origin_len; in nghttp2_frame_unpack_altsvc_payload()
759 altsvc->origin_len = origin_len; in nghttp2_frame_unpack_altsvc_payload()
[all …]
Dnghttp2_frame.h357 size_t origin_len, uint8_t *payload,
514 uint8_t *origin, size_t origin_len,
Dnghttp2_session.c5230 if (altsvc->origin_len == 0) { in nghttp2_session_on_altsvc_received()
5235 if (altsvc->origin_len > 0) { in nghttp2_session_on_altsvc_received()
6618 size_t origin_len; in nghttp2_session_mem_recv() local
6620 origin_len = nghttp2_get_uint16(iframe->sbuf.pos); in nghttp2_session_mem_recv()
6622 DEBUGF("recv: origin_len=%zu\n", origin_len); in nghttp2_session_mem_recv()
6624 if (origin_len > iframe->payloadleft) { in nghttp2_session_mem_recv()
/third_party/node/deps/nghttp2/lib/
Dnghttp2_submit.c504 size_t origin_len, const uint8_t *field_value, in nghttp2_submit_altsvc() argument
522 if (2 + origin_len + field_value_len > NGHTTP2_MAX_PAYLOADLEN) { in nghttp2_submit_altsvc()
527 if (origin_len == 0) { in nghttp2_submit_altsvc()
530 } else if (origin_len != 0) { in nghttp2_submit_altsvc()
534 buf = nghttp2_mem_malloc(mem, origin_len + field_value_len + 2); in nghttp2_submit_altsvc()
542 if (origin_len) { in nghttp2_submit_altsvc()
543 p = nghttp2_cpymem(p, origin, origin_len); in nghttp2_submit_altsvc()
568 nghttp2_frame_altsvc_init(&frame->ext, stream_id, origin_copy, origin_len, in nghttp2_submit_altsvc()
608 len += ov[i].origin_len; in nghttp2_submit_origin()
626 ov_copy[i].origin_len = ov[i].origin_len; in nghttp2_submit_origin()
[all …]
Dnghttp2_frame.c200 uint8_t *origin, size_t origin_len, in nghttp2_frame_altsvc_init() argument
204 nghttp2_frame_hd_init(&frame->hd, 2 + origin_len + field_value_len, in nghttp2_frame_altsvc_init()
209 altsvc->origin_len = origin_len; in nghttp2_frame_altsvc_init()
233 payloadlen += 2 + ov[i].origin_len; in nghttp2_frame_origin_init()
728 2 + altsvc->origin_len + altsvc->field_value_len); in nghttp2_frame_pack_altsvc()
734 nghttp2_put_uint16be(buf->last, (uint16_t)altsvc->origin_len); in nghttp2_frame_pack_altsvc()
737 rv = nghttp2_bufs_add(bufs, altsvc->origin, altsvc->origin_len); in nghttp2_frame_pack_altsvc()
747 size_t origin_len, uint8_t *payload, in nghttp2_frame_unpack_altsvc_payload() argument
757 p += origin_len; in nghttp2_frame_unpack_altsvc_payload()
759 altsvc->origin_len = origin_len; in nghttp2_frame_unpack_altsvc_payload()
[all …]
Dnghttp2_frame.h357 size_t origin_len, uint8_t *payload,
514 uint8_t *origin, size_t origin_len,
Dnghttp2_session.c5225 if (altsvc->origin_len == 0) { in nghttp2_session_on_altsvc_received()
5230 if (altsvc->origin_len > 0) { in nghttp2_session_on_altsvc_received()
6613 size_t origin_len; in nghttp2_session_mem_recv() local
6615 origin_len = nghttp2_get_uint16(iframe->sbuf.pos); in nghttp2_session_mem_recv()
6617 DEBUGF("recv: origin_len=%zu\n", origin_len); in nghttp2_session_mem_recv()
6619 if (origin_len > iframe->payloadleft) { in nghttp2_session_mem_recv()
/third_party/node/src/
Dnode_http2.cc408 nva[0].origin_len = 1; in Origins()
414 nva[n].origin_len = strlen(p); in Origins()
415 p += nva[n].origin_len + 1; in Origins()
1480 OneByteString(isolate, altsvc->origin, altsvc->origin_len), in HandleAltSvcFrame()
1504 origin_v[i] = OneByteString(isolate, entry.origin, entry.origin_len); in HandleOriginFrame()
2924 size_t origin_len, in AltSvc() argument
2929 origin, origin_len, value, value_len), 0); in AltSvc()
2956 size_t origin_len = origin_str->Length(); in AltSvc() local
2959 CHECK_LE(origin_len + value_len, 16382); // Max permitted for ALTSVC in AltSvc()
2962 CHECK((origin_len != 0 && id == 0) || (origin_len == 0 && id != 0)); in AltSvc()
[all …]
Dnode_http2.h595 size_t origin_len,
/third_party/nghttp2/src/
Dapp_helper.cc358 static_cast<int>(altsvc->origin_len), altsvc->origin, in print_frame()
367 fprintf(outfile, "[%.*s]\n", (int)ent->origin_len, ent->origin); in print_frame()
/third_party/nghttp2/tests/
Dnghttp2_frame_test.c490 CU_ASSERT(sizeof(origin) - 1 == oaltsvc.origin_len); in test_nghttp2_frame_pack_altsvc()
550 CU_ASSERT(sizeof(example) - 1 == oorigin.ov[0].origin_len); in test_nghttp2_frame_pack_origin()
552 CU_ASSERT(sizeof(nghttp2) - 1 == oorigin.ov[1].origin_len); in test_nghttp2_frame_pack_origin()
Dnghttp2_session_test.c2646 ov.origin_len = sizeof(nghttp2) - 1; in test_nghttp2_session_recv_origin()
6698 size_t origin_len; in test_nghttp2_submit_altsvc() local
6725 origin_len = nghttp2_get_uint16(data + NGHTTP2_FRAME_HDLEN); in test_nghttp2_submit_altsvc()
6727 CU_ASSERT(sizeof(origin) - 1 == origin_len); in test_nghttp2_submit_altsvc()
6813 CU_ASSERT(sizeof(nghttp2) - 1 == origin.ov[0].origin_len); in test_nghttp2_submit_origin()
6815 CU_ASSERT(sizeof(examples) - 1 == origin.ov[1].origin_len); in test_nghttp2_submit_origin()
/third_party/node/deps/nghttp2/lib/includes/nghttp2/
Dnghttp2.h4732 size_t origin_len; member
4780 size_t origin_len,
4798 size_t origin_len; member
/third_party/nghttp2/lib/includes/nghttp2/
Dnghttp2.h4748 size_t origin_len; member
4796 size_t origin_len,
4814 size_t origin_len; member