/third_party/musl/porting/liteos_a/user/src/network/ |
H A D | ent.c | 37 static struct hostdata *hd = NULL; variable 43 if (hd->buf[0] == '#') in gethostent_resolv() 46 ch = strchr(hd->buf, '#'); in gethostent_resolv() 49 ch = strtok_r(hd->buf, " \t\n", &ptr); in gethostent_resolv() 53 if (inet_pton(AF_INET, ch, hd->addr_list[0]) == 1) { in gethostent_resolv() 54 hd->he.h_addrtype = AF_INET; in gethostent_resolv() 55 hd->he.h_length = INET_ADDR_LEN; in gethostent_resolv() 56 hd->addr_list[0][INET_ADDR_LEN] = '\0'; in gethostent_resolv() 57 } else if (inet_pton(AF_INET6, ch, hd->addr_list[0]) == 1) { in gethostent_resolv() 58 hd in gethostent_resolv() [all...] |
/third_party/musl/src/network/ |
H A D | ent.c | 43 static struct hostdata *hd = NULL; variable 49 if (hd->buf[0] == '#') in gethostent_resolv() 52 ch = strchr(hd->buf, '#'); in gethostent_resolv() 55 ch = strtok_r(hd->buf, " \t\n", &ptr); in gethostent_resolv() 59 if (inet_pton(AF_INET, ch, hd->addr_list[0]) == 1) { in gethostent_resolv() 60 hd->he.h_addrtype = AF_INET; in gethostent_resolv() 61 hd->he.h_length = INET_ADDR_LEN; in gethostent_resolv() 62 hd->addr_list[0][INET_ADDR_LEN] = '\0'; in gethostent_resolv() 63 } else if (inet_pton(AF_INET6, ch, hd->addr_list[0]) == 1) { in gethostent_resolv() 64 hd in gethostent_resolv() [all...] |
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
H A D | ngtcp2_log.c | 100 (DIR), hd->pkt_num, strpkttype(hd) 104 (DIR), hd->pkt_num, strpkttype(hd) 171 static const char *strpkttype(const ngtcp2_pkt_hd *hd) { in strpkttype() argument 172 if (hd->flags & NGTCP2_PKT_FLAG_LONG_FORM) { in strpkttype() 173 return strpkttype_long(hd->type); in strpkttype() 176 switch (hd->type) { in strpkttype() 189 ngtcp2_pkt_hd hd = {0}; in strpkttype_type_flags() local 191 hd in strpkttype_type_flags() 219 log_fr_stream(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_stream *fr, const char *dir) log_fr_stream() argument 230 log_fr_ack(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_ack *fr, const char *dir) log_fr_ack() argument 272 log_fr_padding(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_padding *fr, const char *dir) log_fr_padding() argument 278 log_fr_reset_stream(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_reset_stream *fr, const char *dir) log_fr_reset_stream() argument 289 log_fr_connection_close(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_connection_close *fr, const char *dir) log_fr_connection_close() argument 307 log_fr_max_data(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_max_data *fr, const char *dir) log_fr_max_data() argument 314 log_fr_max_stream_data(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_max_stream_data *fr, const char *dir) log_fr_max_stream_data() argument 324 log_fr_max_streams(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_max_streams *fr, const char *dir) log_fr_max_streams() argument 331 log_fr_ping(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_ping *fr, const char *dir) log_fr_ping() argument 337 log_fr_data_blocked(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_data_blocked *fr, const char *dir) log_fr_data_blocked() argument 345 log_fr_stream_data_blocked(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_stream_data_blocked *fr, const char *dir) log_fr_stream_data_blocked() argument 355 log_fr_streams_blocked(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_streams_blocked *fr, const char *dir) log_fr_streams_blocked() argument 364 log_fr_new_connection_id(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_new_connection_id *fr, const char *dir) log_fr_new_connection_id() argument 382 log_fr_stop_sending(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_stop_sending *fr, const char *dir) log_fr_stop_sending() argument 392 log_fr_path_challenge(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_path_challenge *fr, const char *dir) log_fr_path_challenge() argument 403 log_fr_path_response(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_path_response *fr, const char *dir) log_fr_path_response() argument 414 log_fr_crypto(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_crypto *fr, const char *dir) log_fr_crypto() argument 423 log_fr_new_token(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_new_token *fr, const char *dir) log_fr_new_token() argument 442 log_fr_retire_connection_id(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_retire_connection_id *fr, const char *dir) log_fr_retire_connection_id() argument 451 log_fr_handshake_done(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_handshake_done *fr, const char *dir) log_fr_handshake_done() argument 458 log_fr_datagram(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_datagram *fr, const char *dir) log_fr_datagram() argument 466 log_fr(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_frame *fr, const char *dir) log_fr() argument 542 ngtcp2_log_rx_fr(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_frame *fr) ngtcp2_log_rx_fr() argument 551 ngtcp2_log_tx_fr(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_frame *fr) ngtcp2_log_tx_fr() argument 560 ngtcp2_log_rx_vn(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const uint32_t *sv, size_t nsv) ngtcp2_log_rx_vn() argument 577 ngtcp2_pkt_hd *hd = &shd; ngtcp2_log_rx_sr() local 745 log_pkt_hd(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const char *dir) log_pkt_hd() argument 771 ngtcp2_log_rx_pkt_hd(ngtcp2_log *log, const ngtcp2_pkt_hd *hd) ngtcp2_log_rx_pkt_hd() argument 775 ngtcp2_log_tx_pkt_hd(ngtcp2_log *log, const ngtcp2_pkt_hd *hd) ngtcp2_log_tx_pkt_hd() argument 802 ngtcp2_log_tx_cancel(ngtcp2_log *log, const ngtcp2_pkt_hd *hd) ngtcp2_log_tx_cancel() argument [all...] |
H A D | ngtcp2_log.h | 93 void ngtcp2_log_rx_fr(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, 95 void ngtcp2_log_tx_fr(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, 98 void ngtcp2_log_rx_vn(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, 109 void ngtcp2_log_rx_pkt_hd(ngtcp2_log *log, const ngtcp2_pkt_hd *hd); 111 void ngtcp2_log_tx_pkt_hd(ngtcp2_log *log, const ngtcp2_pkt_hd *hd); 113 void ngtcp2_log_tx_cancel(ngtcp2_log *log, const ngtcp2_pkt_hd *hd);
|
H A D | ngtcp2_ppe.c | 46 int ngtcp2_ppe_encode_hd(ngtcp2_ppe *ppe, const ngtcp2_pkt_hd *hd) { in ngtcp2_ppe_encode_hd() argument 55 if (hd->flags & NGTCP2_PKT_FLAG_LONG_FORM) { in ngtcp2_ppe_encode_hd() 56 ppe->len_offset = 1 + 4 + 1 + hd->dcid.datalen + 1 + hd->scid.datalen; in ngtcp2_ppe_encode_hd() 57 if (hd->type == NGTCP2_PKT_INITIAL) { in ngtcp2_ppe_encode_hd() 58 ppe->len_offset += ngtcp2_put_varint_len(hd->token.len) + hd->token.len; in ngtcp2_ppe_encode_hd() 62 buf->last, ngtcp2_buf_left(buf) - cc->aead.max_overhead, hd); in ngtcp2_ppe_encode_hd() 64 ppe->pkt_num_offset = 1 + hd->dcid.datalen; in ngtcp2_ppe_encode_hd() 66 buf->last, ngtcp2_buf_left(buf) - cc->aead.max_overhead, hd); in ngtcp2_ppe_encode_hd() [all...] |
H A D | ngtcp2_qlog.c | 249 static const ngtcp2_vec *qlog_pkt_type(const ngtcp2_pkt_hd *hd) { in qlog_pkt_type() argument 250 if (hd->flags & NGTCP2_PKT_FLAG_LONG_FORM) { in qlog_pkt_type() 251 switch (hd->type) { in qlog_pkt_type() 265 switch (hd->type) { in qlog_pkt_type() 277 static uint8_t *write_pkt_hd(uint8_t *p, const ngtcp2_pkt_hd *hd) { in write_pkt_hd() argument 284 p = write_pair(p, "packet_type", qlog_pkt_type(hd)); in write_pkt_hd() 286 p = write_pair_number(p, "packet_number", (uint64_t)hd->pkt_num); in write_pkt_hd() 287 if (hd->type == NGTCP2_PKT_INITIAL && hd->token.len) { in write_pkt_hd() 289 p = write_pair_hex(p, "data", hd in write_pkt_hd() 701 qlog_pkt_write_end(ngtcp2_qlog *qlog, const ngtcp2_pkt_hd *hd, size_t pktlen) qlog_pkt_write_end() argument 912 ngtcp2_qlog_pkt_received_end(ngtcp2_qlog *qlog, const ngtcp2_pkt_hd *hd, size_t pktlen) ngtcp2_qlog_pkt_received_end() argument 921 ngtcp2_qlog_pkt_sent_end(ngtcp2_qlog *qlog, const ngtcp2_pkt_hd *hd, size_t pktlen) ngtcp2_qlog_pkt_sent_end() argument 1074 ngtcp2_pkt_hd hd = {0}; ngtcp2_qlog_pkt_lost() local 1097 ngtcp2_qlog_retry_pkt_received(ngtcp2_qlog *qlog, const ngtcp2_pkt_hd *hd, const ngtcp2_pkt_retry *retry) ngtcp2_qlog_retry_pkt_received() argument 1136 ngtcp2_pkt_hd hd = {0}; ngtcp2_qlog_stateless_reset_pkt_received() local 1159 ngtcp2_qlog_version_negotiation_pkt_received(ngtcp2_qlog *qlog, const ngtcp2_pkt_hd *hd, const uint32_t *sv, size_t nsv) ngtcp2_qlog_version_negotiation_pkt_received() argument [all...] |
H A D | ngtcp2_pkt.c | 141 void ngtcp2_pkt_hd_init(ngtcp2_pkt_hd *hd, uint8_t flags, uint8_t type, in ngtcp2_pkt_hd_init() argument 145 hd->flags = flags; in ngtcp2_pkt_hd_init() 146 hd->type = type; in ngtcp2_pkt_hd_init() 148 hd->dcid = *dcid; in ngtcp2_pkt_hd_init() 150 ngtcp2_cid_zero(&hd->dcid); in ngtcp2_pkt_hd_init() 153 hd->scid = *scid; in ngtcp2_pkt_hd_init() 155 ngtcp2_cid_zero(&hd->scid); in ngtcp2_pkt_hd_init() 157 hd->pkt_num = pkt_num; in ngtcp2_pkt_hd_init() 158 hd->token.base = NULL; in ngtcp2_pkt_hd_init() 159 hd in ngtcp2_pkt_hd_init() 384 ngtcp2_pkt_encode_hd_long(uint8_t *out, size_t outlen, const ngtcp2_pkt_hd *hd) ngtcp2_pkt_encode_hd_long() argument 441 ngtcp2_pkt_encode_hd_short(uint8_t *out, size_t outlen, const ngtcp2_pkt_hd *hd) ngtcp2_pkt_encode_hd_short() argument 2255 ngtcp2_pkt_hd hd; ngtcp2_pkt_write_retry() local 2319 ngtcp2_pkt_encode_pseudo_retry( uint8_t *dest, size_t destlen, const ngtcp2_pkt_hd *hd, uint8_t unused, const ngtcp2_cid *odcid, const uint8_t *token, size_t tokenlen) ngtcp2_pkt_encode_pseudo_retry() argument [all...] |
H A D | ngtcp2_rtb.c | 252 static void rtb_entry_init(ngtcp2_rtb_entry *ent, const ngtcp2_pkt_hd *hd, in rtb_entry_init() argument 257 ent->hd.pkt_num = hd->pkt_num; in rtb_entry_init() 258 ent->hd.type = hd->type; in rtb_entry_init() 259 ent->hd.flags = hd->flags; in rtb_entry_init() 269 const ngtcp2_pkt_hd *hd, in ngtcp2_rtb_entry_objalloc_new() 278 rtb_entry_init(*pent, hd, frc, ts, pktlen, flags); in ngtcp2_rtb_entry_objalloc_new() 347 assert(rtb->cc_pkt_num <= ent->hd in rtb_on_add() 268 ngtcp2_rtb_entry_objalloc_new(ngtcp2_rtb_entry **pent, const ngtcp2_pkt_hd *hd, ngtcp2_frame_chain *frc, ngtcp2_tstamp ts, size_t pktlen, uint16_t flags, ngtcp2_objalloc *objalloc) ngtcp2_rtb_entry_objalloc_new() argument [all...] |
/third_party/nghttp2/src/ |
H A D | HttpServer.cc | 128 auto hd = stream->handler; in stream_timeout_cb() local 129 auto config = hd->get_config(); in stream_timeout_cb() 131 ev_timer_stop(hd->get_loop(), &stream->rtimer); in stream_timeout_cb() 132 ev_timer_stop(hd->get_loop(), &stream->wtimer); in stream_timeout_cb() 135 print_session_id(hd->session_id()); in stream_timeout_cb() 140 hd->submit_rst_stream(stream, NGHTTP2_INTERNAL_ERROR); in stream_timeout_cb() 142 rv = hd->on_write(); in stream_timeout_cb() 144 delete_handler(hd); in stream_timeout_cb() 151 auto hd = stream->handler; in add_stream_read_timeout() local 152 ev_timer_again(hd in add_stream_read_timeout() 158 auto hd = stream->handler; add_stream_read_timeout_if_pending() local 167 auto hd = stream->handler; add_stream_write_timeout() local 174 auto hd = stream->handler; remove_stream_read_timeout() local 181 auto hd = stream->handler; remove_stream_write_timeout() local 492 on_session_closed(Http2Handler *hd, int64_t session_id) on_session_closed() argument 504 auto hd = static_cast<Http2Handler *>(w->data); settings_timeout_cb() local 1098 auto hd = static_cast<Http2Handler *>(user_data); file_read_callback() local 1138 prepare_status_response(Stream *stream, Http2Handler *hd, int status) prepare_status_response() argument 1162 prepare_echo_response(Stream *stream, Http2Handler *hd) prepare_echo_response() argument 1191 prepare_upload_temp_store(Stream *stream, Http2Handler *hd) prepare_upload_temp_store() argument 1211 prepare_redirect_response(Stream *stream, Http2Handler *hd, const StringRef &path, int status) prepare_redirect_response() argument 1234 prepare_response(Stream *stream, Http2Handler *hd, bool allow_push = true) prepare_response() argument 1410 auto hd = static_cast<Http2Handler *>(user_data); on_header_callback2() local 1485 auto hd = static_cast<Http2Handler *>(user_data); on_begin_headers_callback() local 1505 auto hd = static_cast<Http2Handler *>(user_data); hd_on_frame_recv_callback() local 1582 auto hd = static_cast<Http2Handler *>(user_data); hd_on_frame_send_callback() local 1645 auto hd = static_cast<Http2Handler *>(user_data); send_data_callback() local 1697 auto hd = static_cast<Http2Handler *>(user_data); select_padding_callback() local 1706 auto hd = static_cast<Http2Handler *>(user_data); on_data_chunk_recv_callback() local 1739 auto hd = static_cast<Http2Handler *>(user_data); on_stream_close_callback() local [all...] |
H A D | app_helper.cc | 176 void print_frame_hd(const nghttp2_frame_hd &hd) { in print_frame_hd() argument 177 fprintf(outfile, "<length=%zu, flags=0x%02x, stream_id=%d>\n", hd.length, in print_frame_hd() 178 hd.flags, hd.stream_id); in print_frame_hd() 183 void print_flags(const nghttp2_frame_hd &hd) { in print_flags() argument 185 switch (hd.type) { in print_flags() 187 if (hd.flags & NGHTTP2_FLAG_END_STREAM) { in print_flags() 190 if (hd.flags & NGHTTP2_FLAG_PADDED) { in print_flags() 198 if (hd.flags & NGHTTP2_FLAG_END_STREAM) { in print_flags() 201 if (hd in print_flags() [all...] |
H A D | shrpx_mruby_module.cc | 91 for (auto &hd : headers) { in create_headers_hash() 92 if (hd.name.empty() || hd.name[0] == ':') { in create_headers_hash() 97 auto key = mrb_str_new(mrb, hd.name.c_str(), hd.name.size()); in create_headers_hash() 103 mrb_ary_push(mrb, ary, mrb_str_new(mrb, hd.value.c_str(), hd.value.size())); in create_headers_hash()
|
H A D | shrpx_quic_connection_handler.cc | 171 ngtcp2_pkt_hd hd; in handle_packet() local 177 switch (ngtcp2_accept(&hd, data, datalen)) { in handle_packet() 201 send_connection_close(faddr, hd.version, hd.dcid, hd.scid, remote_addr, in handle_packet() 207 if (hd.tokenlen == 0) { in handle_packet() 218 switch (hd.token[0]) { in handle_packet() 229 if (verify_retry_token(odcid, hd.token, hd.tokenlen, hd in handle_packet() 367 handle_new_connection( const UpstreamAddr *faddr, const Address &remote_addr, const Address &local_addr, const ngtcp2_pkt_hd &hd, const ngtcp2_cid *odcid, const uint8_t *token, size_t tokenlen, ngtcp2_token_type token_type) handle_new_connection() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
H A D | crypto_gnutls.c | 23 gcry_md_hd_t hd; in gnutls_digest_vector() local 30 if (gcry_md_open(&hd, algo, 0) != GPG_ERR_NO_ERROR) in gnutls_digest_vector() 33 gcry_md_write(hd, addr[i], len[i]); in gnutls_digest_vector() 34 p = gcry_md_read(hd, algo); in gnutls_digest_vector() 37 gcry_md_close(hd); in gnutls_digest_vector() 50 gcry_cipher_hd_t hd; in des_encrypt() local 63 gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0); in des_encrypt() 64 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8)); in des_encrypt() 65 gcry_cipher_encrypt(hd, cypher, 8, clear, 8); in des_encrypt() 66 gcry_cipher_close(hd); in des_encrypt() 105 gcry_md_hd_t hd; gnutls_hmac_vector() local 217 gcry_cipher_hd_t hd; aes_encrypt_init() local 239 gcry_cipher_hd_t hd = ctx; aes_encrypt() local 247 gcry_cipher_hd_t hd = ctx; aes_encrypt_deinit() local 254 gcry_cipher_hd_t hd; aes_decrypt_init() local 273 gcry_cipher_hd_t hd = ctx; aes_decrypt() local 281 gcry_cipher_hd_t hd = ctx; aes_decrypt_deinit() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | crypto_gnutls.c | 23 gcry_md_hd_t hd; in gnutls_digest_vector() local 30 if (gcry_md_open(&hd, algo, 0) != GPG_ERR_NO_ERROR) in gnutls_digest_vector() 33 gcry_md_write(hd, addr[i], len[i]); in gnutls_digest_vector() 34 p = gcry_md_read(hd, algo); in gnutls_digest_vector() 37 gcry_md_close(hd); in gnutls_digest_vector() 50 gcry_cipher_hd_t hd; in des_encrypt() local 63 gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0); in des_encrypt() 64 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8)); in des_encrypt() 65 gcry_cipher_encrypt(hd, cypher, 8, clear, 8); in des_encrypt() 66 gcry_cipher_close(hd); in des_encrypt() 105 gcry_md_hd_t hd; gnutls_hmac_vector() local 217 gcry_cipher_hd_t hd; aes_encrypt_init() local 239 gcry_cipher_hd_t hd = ctx; aes_encrypt() local 247 gcry_cipher_hd_t hd = ctx; aes_encrypt_deinit() local 254 gcry_cipher_hd_t hd; aes_decrypt_init() local 273 gcry_cipher_hd_t hd = ctx; aes_decrypt() local 281 gcry_cipher_hd_t hd = ctx; aes_decrypt_deinit() local [all...] |
/third_party/nghttp2/lib/ |
H A D | nghttp2_frame.c | 37 void nghttp2_frame_pack_frame_hd(uint8_t *buf, const nghttp2_frame_hd *hd) { in nghttp2_frame_pack_frame_hd() argument 38 nghttp2_put_uint32be(&buf[0], (uint32_t)(hd->length << 8)); in nghttp2_frame_pack_frame_hd() 39 buf[3] = hd->type; in nghttp2_frame_pack_frame_hd() 40 buf[4] = hd->flags; in nghttp2_frame_pack_frame_hd() 41 nghttp2_put_uint32be(&buf[5], (uint32_t)hd->stream_id); in nghttp2_frame_pack_frame_hd() 42 /* ignore hd->reserved for now */ in nghttp2_frame_pack_frame_hd() 45 void nghttp2_frame_unpack_frame_hd(nghttp2_frame_hd *hd, const uint8_t *buf) { in nghttp2_frame_unpack_frame_hd() argument 46 hd->length = nghttp2_get_uint32(&buf[0]) >> 8; in nghttp2_frame_unpack_frame_hd() 47 hd->type = buf[3]; in nghttp2_frame_unpack_frame_hd() 48 hd in nghttp2_frame_unpack_frame_hd() 53 nghttp2_frame_hd_init(nghttp2_frame_hd *hd, size_t length, uint8_t type, uint8_t flags, int32_t stream_id) nghttp2_frame_hd_init() argument 309 nghttp2_frame_hd hd; frame_pack_headers_shared() local 1174 nghttp2_frame_add_pad(nghttp2_bufs *bufs, nghttp2_frame_hd *hd, size_t padlen, int framehd_only) nghttp2_frame_add_pad() argument [all...] |
H A D | nghttp2_session.c | 97 if (!stream || frame->hd.type != NGHTTP2_HEADERS) { in session_trailer_headers() 310 iframe->frame.hd.type is 0, so that no free is performed. */ in session_inbound_frame_reset() 311 switch (iframe->frame.hd.type) { in session_inbound_frame_reset() 348 iframe->frame.hd.type)) { in session_inbound_frame_reset() 351 switch (iframe->frame.hd.type) { in session_inbound_frame_reset() 1118 stream = nghttp2_session_get_stream(session, frame->hd.stream_id); in nghttp2_session_add_item() 1120 switch (frame->hd.type) { in nghttp2_session_add_item() 1199 } else if (frame->hd.stream_id == 0) { in nghttp2_session_add_item() 1246 assert(headers_frame->hd.type == NGHTTP2_HEADERS); in nghttp2_session_add_rst_stream() 1248 if (headers_frame->hd in nghttp2_session_add_rst_stream() 3587 session_call_on_begin_frame(nghttp2_session *session, const nghttp2_frame_hd *hd) session_call_on_begin_frame() argument 5754 inbound_frame_handle_pad(nghttp2_inbound_frame *iframe, nghttp2_frame_hd *hd) inbound_frame_handle_pad() argument [all...] |
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_frame.c | 37 void nghttp2_frame_pack_frame_hd(uint8_t *buf, const nghttp2_frame_hd *hd) { in nghttp2_frame_pack_frame_hd() argument 38 nghttp2_put_uint32be(&buf[0], (uint32_t)(hd->length << 8)); in nghttp2_frame_pack_frame_hd() 39 buf[3] = hd->type; in nghttp2_frame_pack_frame_hd() 40 buf[4] = hd->flags; in nghttp2_frame_pack_frame_hd() 41 nghttp2_put_uint32be(&buf[5], (uint32_t)hd->stream_id); in nghttp2_frame_pack_frame_hd() 42 /* ignore hd->reserved for now */ in nghttp2_frame_pack_frame_hd() 45 void nghttp2_frame_unpack_frame_hd(nghttp2_frame_hd *hd, const uint8_t *buf) { in nghttp2_frame_unpack_frame_hd() argument 46 hd->length = nghttp2_get_uint32(&buf[0]) >> 8; in nghttp2_frame_unpack_frame_hd() 47 hd->type = buf[3]; in nghttp2_frame_unpack_frame_hd() 48 hd in nghttp2_frame_unpack_frame_hd() 53 nghttp2_frame_hd_init(nghttp2_frame_hd *hd, size_t length, uint8_t type, uint8_t flags, int32_t stream_id) nghttp2_frame_hd_init() argument 309 nghttp2_frame_hd hd; frame_pack_headers_shared() local 1174 nghttp2_frame_add_pad(nghttp2_bufs *bufs, nghttp2_frame_hd *hd, size_t padlen, int framehd_only) nghttp2_frame_add_pad() argument [all...] |
H A D | nghttp2_session.c | 97 if (!stream || frame->hd.type != NGHTTP2_HEADERS) { in session_trailer_headers() 310 iframe->frame.hd.type is 0, so that no free is performed. */ in session_inbound_frame_reset() 311 switch (iframe->frame.hd.type) { in session_inbound_frame_reset() 348 iframe->frame.hd.type)) { in session_inbound_frame_reset() 351 switch (iframe->frame.hd.type) { in session_inbound_frame_reset() 1113 stream = nghttp2_session_get_stream(session, frame->hd.stream_id); in nghttp2_session_add_item() 1115 switch (frame->hd.type) { in nghttp2_session_add_item() 1194 } else if (frame->hd.stream_id == 0) { in nghttp2_session_add_item() 1241 assert(headers_frame->hd.type == NGHTTP2_HEADERS); in nghttp2_session_add_rst_stream() 1243 if (headers_frame->hd in nghttp2_session_add_rst_stream() 3582 session_call_on_begin_frame(nghttp2_session *session, const nghttp2_frame_hd *hd) session_call_on_begin_frame() argument 5749 inbound_frame_handle_pad(nghttp2_inbound_frame *iframe, nghttp2_frame_hd *hd) inbound_frame_handle_pad() argument [all...] |
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
H A D | encode_decode.c | 73 static void *stringsink_start(void *_sink, const void *hd, size_t size_hint) { in stringsink_start() argument 79 static size_t stringsink_string(void *_sink, const void *hd, const char *ptr, in stringsink_string() argument 84 UPB_UNUSED(hd); in stringsink_string() 131 field_handlerdata_t *hd = ALLOC(field_handlerdata_t); in newhandlerdata() local 132 hd->ofs = ofs; in newhandlerdata() 133 hd->hasbit = hasbit; in newhandlerdata() 134 upb_handlers_addcleanup(h, hd, xfree); in newhandlerdata() 135 return hd; in newhandlerdata() 151 submsg_handlerdata_t *hd = ALLOC(submsg_handlerdata_t); in newsubmsghandlerdata() local 153 hd in newsubmsghandlerdata() 176 oneof_handlerdata_t *hd = ALLOC(oneof_handlerdata_t); newoneofhandlerdata() local 196 startseq_handler(void* closure, const void* hd) startseq_handler() argument 220 appendstr_handler(void *closure, const void *hd, size_t size_hint) appendstr_handler() argument 238 appendbytes_handler(void *closure, const void *hd, size_t size_hint) appendbytes_handler() argument 249 str_handler(void *closure, const void *hd, size_t size_hint) str_handler() argument 263 bytes_handler(void *closure, const void *hd, size_t size_hint) bytes_handler() argument 276 stringdata_handler(void* closure, const void* hd, const char* str, size_t len, const upb_bufhandle* handle) stringdata_handler() argument 284 stringdata_end_handler(void* closure, const void* hd) stringdata_end_handler() argument 290 appendstring_end_handler(void* closure, const void* hd) appendstring_end_handler() argument 297 appendsubmsg_handler(void *closure, const void *hd) appendsubmsg_handler() argument 310 appendwrapper_handler(void *closure, const void *hd) appendwrapper_handler() argument 321 submsg_handler(void *closure, const void *hd) submsg_handler() argument 340 startwrapper(void* closure, const void* hd) startwrapper() argument 419 startmap_handler(void *closure, const void *hd) startmap_handler() argument 436 endmap_handler(void *closure, const void *hd) endmap_handler() argument 444 endmapentry_handler(void* closure, const void* hd, upb_status* s) endmapentry_handler() argument 474 map_handlerdata_t* hd = ALLOC(map_handlerdata_t); new_map_handlerdata() local 509 oneofstr_handler(void *closure, const void *hd, size_t size_hint) oneofstr_handler() argument 522 oneofbytes_handler(void *closure, const void *hd, size_t size_hint) oneofbytes_handler() argument 535 oneofstring_end_handler(void* closure, const void* hd) oneofstring_end_handler() argument 542 oneofsubmsg_handler(void *closure, const void *hd) oneofsubmsg_handler() argument 569 oneof_startwrapper(void* closure, const void* hd) oneof_startwrapper() argument 629 doublewrapper_handler(void* closure, const void* hd, double val) doublewrapper_handler() argument 635 floatwrapper_handler(void* closure, const void* hd, float val) floatwrapper_handler() argument 641 int64wrapper_handler(void* closure, const void* hd, int64_t val) int64wrapper_handler() argument 647 uint64wrapper_handler(void* closure, const void* hd, uint64_t val) uint64wrapper_handler() argument 653 int32wrapper_handler(void* closure, const void* hd, int32_t val) int32wrapper_handler() argument 659 uint32wrapper_handler(void* closure, const void* hd, uint32_t val) uint32wrapper_handler() argument 665 startstringwrapper_handler(void* closure, const void* hd, size_t size_hint) startstringwrapper_handler() argument 674 stringwrapper_handler(void* closure, const void* hd, const char* ptr, size_t len, const upb_bufhandle* handle) stringwrapper_handler() argument 682 startbyteswrapper_handler(void* closure, const void* hd, size_t size_hint) startbyteswrapper_handler() argument 691 byteswrapper_handler(void* closure, const void* hd, const char* ptr, size_t len, const upb_bufhandle* handle) byteswrapper_handler() argument 699 boolwrapper_handler(void* closure, const void* hd, bool val) boolwrapper_handler() argument 763 map_handlerdata_t* hd = new_map_handlerdata(offset, map_msgdef, desc); add_handlers_for_mapfield() local 777 map_handlerdata_t* hd = new_map_handlerdata(0, msgdef, desc); add_handlers_for_mapentry() local 882 unknown_field_handler(void* closure, const void* hd, const char* buf, size_t size) unknown_field_handler() argument [all...] |
/third_party/ntfs-3g/libntfs-3g/ |
H A D | device.c | 72 #include <hd.h> 663 hd_t *hd, *devlist, *partlist = NULL; in ntfs_device_get_geo() local 685 for (hd = devlist; hd; hd = hd->next) { in ntfs_device_get_geo() 686 if (hd->unix_dev_name && !strncmp(dev->d_name, in ntfs_device_get_geo() 687 hd->unix_dev_name, d_name_len)) in ntfs_device_get_geo() 689 if (hd->unix_dev_name2 && !strncmp(dev->d_name, in ntfs_device_get_geo() 690 hd in ntfs_device_get_geo() [all...] |
/third_party/node/deps/ngtcp2/nghttp3/lib/ |
H A D | nghttp3_frame.h | 64 nghttp3_frame_hd hd; member 68 nghttp3_frame_hd hd; member 89 nghttp3_frame_hd hd; member 95 nghttp3_frame_hd hd; member 100 nghttp3_frame_hd hd; member 101 /* pri_elem_id is stream ID if hd.type == 102 NGHTTP3_FRAME_PRIORITY_UPDATE. It is push ID if hd.type == 110 nghttp3_frame_hd hd; member 119 * nghttp3_frame_write_hd writes frame header |hd| to |dest|. This 120 * function assumes that |dest| has enough space to write |hd| [all...] |
H A D | nghttp3_frame.c | 34 uint8_t *nghttp3_frame_write_hd(uint8_t *p, const nghttp3_frame_hd *hd) { in nghttp3_frame_write_hd() argument 35 p = nghttp3_put_varint(p, hd->type); in nghttp3_frame_write_hd() 36 p = nghttp3_put_varint(p, hd->length); in nghttp3_frame_write_hd() 40 size_t nghttp3_frame_write_hd_len(const nghttp3_frame_hd *hd) { in nghttp3_frame_write_hd_len() argument 41 return nghttp3_put_varint_len(hd->type) + nghttp3_put_varint_len(hd->length); in nghttp3_frame_write_hd_len() 48 p = nghttp3_frame_write_hd(p, &fr->hd); in nghttp3_frame_write_settings() 76 p = nghttp3_frame_write_hd(p, &fr->hd); in nghttp3_frame_write_goaway() 95 p = nghttp3_frame_write_hd(p, &fr->hd); in nghttp3_frame_write_priority_update() 120 return nghttp3_put_varint_len(fr->hd in nghttp3_frame_write_priority_update_len() [all...] |
/third_party/nghttp2/tests/ |
H A D | nghttp2_session_test.c | 197 const nghttp2_frame_hd *hd, in on_begin_frame_callback() 201 (void)hd; in on_begin_frame_callback() 213 ud->recv_frame_type = frame->hd.type; in on_frame_recv_callback() 214 ud->recv_frame_hd = frame->hd; in on_frame_recv_callback() 237 ud->sent_frame_type = frame->hd.type; in on_frame_send_callback() 248 ud->not_sent_frame_type = frame->hd.type; in on_frame_not_send_callback() 299 return (ssize_t)nghttp2_min(max_payloadlen, frame->hd.length + ud->padlen); in select_padding_callback() 610 const nghttp2_frame_hd *hd, in on_extension_chunk_recv_callback() 616 (void)hd; in on_extension_chunk_recv_callback() 624 const nghttp2_frame_hd *hd, in cancel_on_extension_chunk_recv_callback() 196 on_begin_frame_callback(nghttp2_session *session, const nghttp2_frame_hd *hd, void *user_data) on_begin_frame_callback() argument 609 on_extension_chunk_recv_callback(nghttp2_session *session, const nghttp2_frame_hd *hd, const uint8_t *data, size_t len, void *user_data) on_extension_chunk_recv_callback() argument 623 cancel_on_extension_chunk_recv_callback(nghttp2_session *session, const nghttp2_frame_hd *hd, const uint8_t *data, size_t len, void *user_data) cancel_on_extension_chunk_recv_callback() argument 637 unpack_extension_callback(nghttp2_session *session, void **payload, const nghttp2_frame_hd *hd, void *user_data) unpack_extension_callback() argument 650 cancel_unpack_extension_callback(nghttp2_session *session, void **payload, const nghttp2_frame_hd *hd, void *user_data) cancel_unpack_extension_callback() argument 909 nghttp2_frame_hd hd; test_nghttp2_session_recv_data() local 1092 nghttp2_frame_hd hd; test_nghttp2_session_recv_data_no_auto_flow_control() local 1587 nghttp2_frame_hd hd; test_nghttp2_session_recv_headers_with_padding() local 1670 response_on_begin_frame_callback(nghttp2_session *session, const nghttp2_frame_hd *hd, void *user_data) response_on_begin_frame_callback() argument 2071 nghttp2_frame_hd hd; test_nghttp2_session_recv_unknown_frame() local 2102 nghttp2_frame_hd hd; test_nghttp2_session_recv_unexpected_continuation() local 2316 nghttp2_frame_hd hd; test_nghttp2_session_recv_too_large_frame_length() local 2343 nghttp2_frame_hd hd; test_nghttp2_session_recv_extension() local 2424 nghttp2_frame_hd hd; test_nghttp2_session_recv_altsvc() local 3692 nghttp2_frame_hd hd; test_nghttp2_session_on_settings_received() local 4497 nghttp2_frame_hd hd; test_nghttp2_session_on_data_received_fail_fast() local 5231 nghttp2_frame_hd hd; test_nghttp2_submit_data() local 5271 nghttp2_frame_hd hd; test_nghttp2_submit_data_read_length_too_large() local 5351 nghttp2_frame_hd hd; test_nghttp2_submit_data_read_length_smallest() local 6697 nghttp2_frame_hd hd; test_nghttp2_submit_altsvc() local 7593 nghttp2_frame_hd hd; test_nghttp2_session_flow_control_data_recv() local 7652 nghttp2_frame_hd hd; test_nghttp2_session_flow_control_data_with_padding_recv() local 10100 nghttp2_frame_hd hd; test_nghttp2_session_on_header_temporal_failure() local 10438 nghttp2_frame_hd hd; test_nghttp2_session_send_data_callback() local 11418 nghttp2_frame_hd hd; prepare_session_removed_closed_stream() local 11517 nghttp2_frame_hd hd; test_nghttp2_session_removed_closed_stream() local 12536 nghttp2_frame_hd hd; test_nghttp2_http_content_length_mismatch() local 12716 nghttp2_frame_hd hd; test_nghttp2_http_non_final_response() local [all...] |
H A D | nghttp2_frame_test.c | 63 int32_t stream_id, nghttp2_frame_hd *hd) { in check_frame_header() 64 CU_ASSERT(length == hd->length); in check_frame_header() 65 CU_ASSERT(type == hd->type); in check_frame_header() 66 CU_ASSERT(flags == hd->flags); in check_frame_header() 67 CU_ASSERT(stream_id == hd->stream_id); in check_frame_header() 68 CU_ASSERT(0 == hd->reserved); in check_frame_header() 110 1000000007, &oframe.hd); in test_nghttp2_frame_pack_headers() 129 frame.hd.flags |= NGHTTP2_FLAG_PRIORITY; in test_nghttp2_frame_pack_headers() 141 1000000007, &oframe.hd); in test_nghttp2_frame_pack_headers() 148 nghttp2_frame_priority_len(oframe.hd in test_nghttp2_frame_pack_headers() 62 check_frame_header(size_t length, uint8_t type, uint8_t flags, int32_t stream_id, nghttp2_frame_hd *hd) check_frame_header() argument [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | gopher.c | 36 URLContext *hd; member 42 return ffurl_write(s->hd, buf, size); in gopher_write() 75 ffurl_closep(&s->hd); in gopher_close() 100 s->hd = NULL; in gopher_open() 101 err = ffurl_open_whitelist(&s->hd, buf, AVIO_FLAG_READ_WRITE, in gopher_open() 117 int len = ffurl_read(s->hd, buf, size); in gopher_read()
|