/third_party/musl/porting/liteos_a/user/src/network/ |
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->he.h_addrtype = AF_INET6; in gethostent_resolv() [all …]
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
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.type = type; in strpkttype_type_flags() 192 hd.flags = flags; in strpkttype_type_flags() 194 return strpkttype(&hd); in strpkttype_type_flags() [all …]
|
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);
|
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() 76 ppe->pkt_numlen = hd->pkt_numlen; in ngtcp2_ppe_encode_hd() 79 ppe->pkt_num = hd->pkt_num; in ngtcp2_ppe_encode_hd()
|
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->token.base, hd->token.len); in write_pkt_hd() 701 static void qlog_pkt_write_end(ngtcp2_qlog *qlog, const ngtcp2_pkt_hd *hd, in qlog_pkt_write_end() argument [all …]
|
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->token.len = 0; in ngtcp2_pkt_hd_init() [all …]
|
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() argument 278 rtb_entry_init(*pent, hd, frc, ts, pktlen, flags); in ngtcp2_rtb_entry_objalloc_new() 347 assert(rtb->cc_pkt_num <= ent->hd.pkt_num); in rtb_on_add() 395 if (rtb->cc_pkt_num <= ent->hd.pkt_num) { in rtb_on_remove() 475 ent->hd.pkt_num != strm->tx.last_lost_pkt_num) { in rtb_reclaim_frame() 476 strm->tx.last_lost_pkt_num = ent->hd.pkt_num; in rtb_reclaim_frame() [all …]
|
/third_party/node/deps/nghttp2/lib/ |
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() 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->flags = buf[4]; in nghttp2_frame_unpack_frame_hd() 49 hd->stream_id = nghttp2_get_uint32(&buf[5]) & NGHTTP2_STREAM_ID_MASK; in nghttp2_frame_unpack_frame_hd() [all …]
|
D | nghttp2_session.c | 97 if (!stream || frame->hd.type != NGHTTP2_HEADERS) { in session_trailer_headers() 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.stream_id <= stream_id) { in nghttp2_session_add_rst_stream() 1248 if (item->frame.hd.stream_id < stream_id) { in nghttp2_session_add_rst_stream() [all …]
|
/third_party/nghttp2/lib/ |
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() 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->flags = buf[4]; in nghttp2_frame_unpack_frame_hd() 49 hd->stream_id = nghttp2_get_uint32(&buf[5]) & NGHTTP2_STREAM_ID_MASK; in nghttp2_frame_unpack_frame_hd() [all …]
|
D | nghttp2_session.c | 97 if (!stream || frame->hd.type != NGHTTP2_HEADERS) { in session_trailer_headers() 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() 1125 stream = nghttp2_session_get_stream(session, frame->hd.stream_id); in nghttp2_session_add_item() 1127 switch (frame->hd.type) { in nghttp2_session_add_item() 1206 } else if (frame->hd.stream_id == 0) { in nghttp2_session_add_item() 1253 assert(headers_frame->hd.type == NGHTTP2_HEADERS); in nghttp2_session_add_rst_stream() 1255 if (headers_frame->hd.stream_id <= stream_id) { in nghttp2_session_add_rst_stream() 1260 if (item->frame.hd.stream_id < stream_id) { in nghttp2_session_add_rst_stream() [all …]
|
/third_party/nghttp2/src/ |
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->get_loop(), &stream->rtimer); in add_stream_read_timeout() [all …]
|
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.flags & NGHTTP2_FLAG_END_HEADERS) { in print_flags() 207 if (hd.flags & NGHTTP2_FLAG_PADDED) { in print_flags() [all …]
|
D | shrpx_mruby_module.cc | 91 for (auto &hd : headers) { in create_headers_hash() local 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()
|
D | shrpx_quic_connection_handler.cc | 171 ngtcp2_pkt_hd hd; in handle_packet() local 176 switch (ngtcp2_accept(&hd, data, datalen)) { in handle_packet() 200 send_connection_close(faddr, hd.version, hd.dcid, hd.scid, remote_addr, in handle_packet() 206 if (hd.tokenlen == 0) { in handle_packet() 217 switch (hd.token[0]) { in handle_packet() 228 if (verify_retry_token(odcid, hd.token, hd.tokenlen, hd.version, in handle_packet() 229 hd.dcid, &remote_addr.su.sa, remote_addr.len, in handle_packet() 238 send_connection_close(faddr, hd.version, hd.dcid, hd.scid, in handle_packet() 250 token = hd.token; in handle_packet() 251 tokenlen = hd.tokenlen; in handle_packet() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
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() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
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() [all …]
|
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
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->ofs = ofs; in newsubmsghandlerdata() [all …]
|
/third_party/ntfs-3g/libntfs-3g/ |
D | device.c | 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->unix_dev_name2, d_name_len)) in ntfs_device_get_geo() 692 for (names = hd->unix_dev_names; names; in ntfs_device_get_geo() 705 for (hd = partlist; hd; hd = hd->next) { in ntfs_device_get_geo() 706 if (hd->unix_dev_name && !strncmp(dev->d_name, in ntfs_device_get_geo() 707 hd->unix_dev_name, d_name_len)) in ntfs_device_get_geo() [all …]
|
/third_party/node/deps/ngtcp2/nghttp3/lib/ |
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 110 nghttp3_frame_hd hd; member 124 uint8_t *nghttp3_frame_write_hd(uint8_t *dest, const nghttp3_frame_hd *hd); 130 size_t nghttp3_frame_write_hd_len(const nghttp3_frame_hd *hd);
|
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.type) + in nghttp3_frame_write_priority_update_len()
|
/third_party/nghttp2/tests/ |
D | nghttp2_session_test.c | 197 const nghttp2_frame_hd *hd, in on_begin_frame_callback() argument 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() 601 const nghttp2_frame_hd *hd, in on_extension_chunk_recv_callback() argument 607 (void)hd; in on_extension_chunk_recv_callback() 615 const nghttp2_frame_hd *hd, in cancel_on_extension_chunk_recv_callback() argument [all …]
|
D | nghttp2_frame_test.c | 63 int32_t stream_id, nghttp2_frame_hd *hd) { in check_frame_header() argument 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.flags); in test_nghttp2_frame_pack_headers() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | gopher.c | 35 URLContext *hd; member 41 return ffurl_write(s->hd, buf, size); in gopher_write() 74 ffurl_closep(&s->hd); in gopher_close() 99 s->hd = NULL; in gopher_open() 100 err = ffurl_open_whitelist(&s->hd, buf, AVIO_FLAG_READ_WRITE, in gopher_open() 116 int len = ffurl_read(s->hd, buf, size); in gopher_read()
|
/third_party/gstreamer/gstplugins_bad/ext/openaptx/ |
D | openaptx-plugin.h | 50 static inline const char* aptx_name(gboolean hd) in aptx_name() argument 52 return hd ? "aptX-HD" : "aptX"; in aptx_name() 56 static inline gsize aptx_frame_size(gboolean hd) in aptx_frame_size() argument 58 return hd ? APTX_HD_FRAME_SIZE : APTX_FRAME_SIZE; in aptx_frame_size()
|