Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 623) sorted by relevance

12345678910>>...25

/external/strace/
Ds390.c482 print_sthyi_machine(struct tcb *tcp, struct sthyi_machine *hdr, uint16_t size, in print_sthyi_machine() argument
487 CHECK_SIZE(hdr, size, "machine structure"); in print_sthyi_machine()
491 if (hdr->infmflg1) { /* Reserved */ in print_sthyi_machine()
492 PRINT_FIELD_0X("", *hdr, infmflg1); in print_sthyi_machine()
495 if (hdr->infmflg2) { /* Reserved */ in print_sthyi_machine()
496 PRINT_FIELD_0X(", ", *hdr, infmflg2); in print_sthyi_machine()
501 PRINT_FIELD_0X("", *hdr, infmval1); in print_sthyi_machine()
502 cnt_val = !!(hdr->infmval1 & 0x80); in print_sthyi_machine()
503 id_val = !!(hdr->infmval1 & 0x40); in print_sthyi_machine()
504 name_val = !!(hdr->infmval1 & 0x20); in print_sthyi_machine()
[all …]
/external/wpa_supplicant_8/src/tls/
Dtlsv1_client_ocsp.c116 struct asn1_hdr hdr; in tls_process_ocsp_single_response() local
141 if (asn1_get_next(resp, len, &hdr) < 0 || in tls_process_ocsp_single_response()
142 hdr.class != ASN1_CLASS_UNIVERSAL || in tls_process_ocsp_single_response()
143 hdr.tag != ASN1_TAG_SEQUENCE) { in tls_process_ocsp_single_response()
146 hdr.class, hdr.tag); in tls_process_ocsp_single_response()
149 pos = hdr.payload; in tls_process_ocsp_single_response()
150 end = hdr.payload + hdr.length; in tls_process_ocsp_single_response()
165 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in tls_process_ocsp_single_response()
166 hdr.class != ASN1_CLASS_UNIVERSAL || in tls_process_ocsp_single_response()
167 hdr.tag != ASN1_TAG_OCTETSTRING) { in tls_process_ocsp_single_response()
[all …]
Dtlsv1_cred.c446 struct asn1_hdr hdr; in pkcs12_certbag() local
458 if (asn1_get_next(buf, len, &hdr) < 0 || in pkcs12_certbag()
459 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs12_certbag()
460 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs12_certbag()
463 hdr.class, hdr.tag); in pkcs12_certbag()
467 pos = hdr.payload; in pkcs12_certbag()
468 end = hdr.payload + hdr.length; in pkcs12_certbag()
485 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs12_certbag()
486 hdr.class != ASN1_CLASS_CONTEXT_SPECIFIC || in pkcs12_certbag()
487 hdr.tag != 0) { in pkcs12_certbag()
[all …]
Dpkcs8.c21 struct asn1_hdr hdr; in pkcs8_key_import() local
30 if (asn1_get_next(buf, len, &hdr) < 0 || in pkcs8_key_import()
31 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs8_key_import()
32 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs8_key_import()
37 pos = hdr.payload; in pkcs8_key_import()
38 end = pos + hdr.length; in pkcs8_key_import()
41 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs8_key_import()
42 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) { in pkcs8_key_import()
45 hdr.class, hdr.tag); in pkcs8_key_import()
53 if (bignum_set_unsigned_bin(zero, hdr.payload, hdr.length) < 0) { in pkcs8_key_import()
[all …]
Dx509v3.c185 struct asn1_hdr hdr; in x509_parse_algorithm_identifier() local
195 if (asn1_get_next(buf, len, &hdr) < 0 || in x509_parse_algorithm_identifier()
196 hdr.class != ASN1_CLASS_UNIVERSAL || in x509_parse_algorithm_identifier()
197 hdr.tag != ASN1_TAG_SEQUENCE) { in x509_parse_algorithm_identifier()
200 hdr.class, hdr.tag); in x509_parse_algorithm_identifier()
203 if (hdr.length > buf + len - hdr.payload) in x509_parse_algorithm_identifier()
205 pos = hdr.payload; in x509_parse_algorithm_identifier()
206 end = pos + hdr.length; in x509_parse_algorithm_identifier()
223 struct asn1_hdr hdr; in x509_parse_public_key() local
236 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in x509_parse_public_key()
[all …]
Dpkcs5.c93 struct asn1_hdr hdr; in pkcs5_get_params_pbes2() local
109 if (asn1_get_next(pos, enc_alg_end - pos, &hdr) < 0 || in pkcs5_get_params_pbes2()
110 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params_pbes2()
111 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs5_get_params_pbes2()
114 hdr.class, hdr.tag); in pkcs5_get_params_pbes2()
117 pos = hdr.payload; in pkcs5_get_params_pbes2()
118 end = hdr.payload + hdr.length; in pkcs5_get_params_pbes2()
120 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs5_get_params_pbes2()
121 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params_pbes2()
122 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs5_get_params_pbes2()
[all …]
Dasn1.c106 static int asn1_valid_der_boolean(struct asn1_hdr *hdr) in asn1_valid_der_boolean() argument
109 if (hdr->length != 1) { in asn1_valid_der_boolean()
111 hdr->length); in asn1_valid_der_boolean()
115 if (hdr->payload[0] != 0 && hdr->payload[0] != 0xff) { in asn1_valid_der_boolean()
118 hdr->payload[0]); in asn1_valid_der_boolean()
126 static int asn1_valid_der(struct asn1_hdr *hdr) in asn1_valid_der() argument
128 if (hdr->class != ASN1_CLASS_UNIVERSAL) in asn1_valid_der()
130 if (hdr->tag == ASN1_TAG_BOOLEAN && !asn1_valid_der_boolean(hdr)) in asn1_valid_der()
136 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) in asn1_get_next() argument
141 os_memset(hdr, 0, sizeof(*hdr)); in asn1_get_next()
[all …]
Dpkcs1.c209 struct asn1_hdr hdr; in pkcs1_v15_sig_ver() local
238 if (asn1_get_next(decrypted, decrypted_len, &hdr) < 0 || in pkcs1_v15_sig_ver()
239 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs1_v15_sig_ver()
240 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs1_v15_sig_ver()
243 hdr.class, hdr.tag); in pkcs1_v15_sig_ver()
248 pos = hdr.payload; in pkcs1_v15_sig_ver()
249 end = pos + hdr.length; in pkcs1_v15_sig_ver()
259 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs1_v15_sig_ver()
260 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs1_v15_sig_ver()
261 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs1_v15_sig_ver()
[all …]
/external/mesa3d/src/util/
Du_debug_memory.c105 data_from_header(struct debug_memory_header *hdr) in data_from_header() argument
107 if (hdr) in data_from_header()
108 return (void *)((char *)hdr + sizeof(struct debug_memory_header)); in data_from_header()
114 footer_from_header(struct debug_memory_header *hdr) in footer_from_header() argument
116 if (hdr) in footer_from_header()
117 …return (struct debug_memory_footer *)((char *)hdr + sizeof(struct debug_memory_header) + hdr->size… in footer_from_header()
127 struct debug_memory_header *hdr; in debug_malloc() local
130 hdr = os_malloc(sizeof(*hdr) + size + sizeof(*ftr)); in debug_malloc()
131 if (!hdr) { in debug_malloc()
138 hdr->no = last_no++; in debug_malloc()
[all …]
/external/wpa_supplicant_8/src/common/
Ddpp_backup.c574 struct asn1_hdr hdr; in dpp_parse_recipient_infos() local
595 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in dpp_parse_recipient_infos()
596 hdr.class != ASN1_CLASS_CONTEXT_SPECIFIC || hdr.tag != 3) { in dpp_parse_recipient_infos()
599 hdr.class, hdr.tag); in dpp_parse_recipient_infos()
603 hdr.payload, hdr.length); in dpp_parse_recipient_infos()
604 pos = hdr.payload; in dpp_parse_recipient_infos()
605 end = pos + hdr.length; in dpp_parse_recipient_infos()
618 if (asn1_get_sequence(pos, end - pos, &hdr, &end) < 0) in dpp_parse_recipient_infos()
620 pos = hdr.payload; in dpp_parse_recipient_infos()
632 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in dpp_parse_recipient_infos()
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Drtp_format_vp9.cc35 uint8_t TemporalIdxField(const RTPVideoHeaderVP9& hdr, uint8_t def) { in TemporalIdxField() argument
36 return (hdr.temporal_idx == kNoTemporalIdx) ? def : hdr.temporal_idx; in TemporalIdxField()
39 uint8_t SpatialIdxField(const RTPVideoHeaderVP9& hdr, uint8_t def) { in SpatialIdxField() argument
40 return (hdr.spatial_idx == kNoSpatialIdx) ? def : hdr.spatial_idx; in SpatialIdxField()
43 int16_t Tl0PicIdxField(const RTPVideoHeaderVP9& hdr, uint8_t def) { in Tl0PicIdxField() argument
44 return (hdr.tl0_pic_idx == kNoTl0PicIdx) ? def : hdr.tl0_pic_idx; in Tl0PicIdxField()
55 size_t PictureIdLength(const RTPVideoHeaderVP9& hdr) { in PictureIdLength() argument
56 if (hdr.picture_id == kNoPictureId) in PictureIdLength()
58 return (hdr.max_picture_id == kMaxOneBytePictureId) ? 1 : 2; in PictureIdLength()
61 bool PictureIdPresent(const RTPVideoHeaderVP9& hdr) { in PictureIdPresent() argument
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_lwt_ip_encap.c21 } hdr; in bpf_lwt_encap_gre() local
24 memset(&hdr, 0, sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
26 hdr.iph.ihl = 5; in bpf_lwt_encap_gre()
27 hdr.iph.version = 4; in bpf_lwt_encap_gre()
28 hdr.iph.ttl = 0x40; in bpf_lwt_encap_gre()
29 hdr.iph.protocol = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre()
31 hdr.iph.saddr = 0x640110ac; /* 172.16.1.100 */ in bpf_lwt_encap_gre()
32 hdr.iph.daddr = 0x641010ac; /* 172.16.16.100 */ in bpf_lwt_encap_gre()
34 hdr.iph.saddr = 0xac100164; /* 172.16.1.100 */ in bpf_lwt_encap_gre()
35 hdr.iph.daddr = 0xac101064; /* 172.16.16.100 */ in bpf_lwt_encap_gre()
[all …]
/external/toybox/toys/posix/
Dtar.c79 } hdr;
185 struct tar_hdr hdr; in add_to_tar() local
236 memset(&hdr, 0, sizeof(hdr)); in add_to_tar()
237 strncpy(hdr.name, hname, sizeof(hdr.name)); in add_to_tar()
238 ITOO(hdr.mode, st->st_mode &07777); in add_to_tar()
239 ITOO(hdr.uid, st->st_uid); in add_to_tar()
240 ITOO(hdr.gid, st->st_gid); in add_to_tar()
241 ITOO(hdr.size, 0); //set size later in add_to_tar()
242 ITOO(hdr.mtime, st->st_mtime); in add_to_tar()
243 strcpy(hdr.magic, "ustar "); in add_to_tar()
[all …]
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmp_redirector.c293 ntohs(rcvarp_p->hdr.ar_op)); in return_arp_reply()
294 if (rcvarp_p->hdr.ar_op != htons(ARPOP_REQUEST)) in return_arp_reply()
326 memcpy(sndeth.hdr.h_dest, rcveth_p->hdr.h_source, ETH_ALEN); in return_arp_reply()
327 memcpy(sndeth.hdr.h_source, gateway_p->hd_addr, ETH_ALEN); in return_arp_reply()
328 sndeth.hdr.h_proto = htons(ETH_P_ARP); in return_arp_reply()
331 sndarp_p->hdr.ar_hrd = htons(ARPHRD_ETHER); in return_arp_reply()
332 sndarp_p->hdr.ar_pro = htons(ETH_P_IP); in return_arp_reply()
333 sndarp_p->hdr.ar_hln = ETH_ALEN; in return_arp_reply()
334 sndarp_p->hdr.ar_pln = 4; in return_arp_reply()
335 sndarp_p->hdr.ar_op = htons(ARPOP_REPLY); in return_arp_reply()
[all …]
Dns-icmpv4_sender.c366 pkt.hdr.version = 4; in create_clean_packet()
367 pkt.hdr.ihl = sizeof(struct iphdr) / 4; in create_clean_packet()
368 pkt.hdr.tos = 0; in create_clean_packet()
369 pkt.hdr.tot_len = htons(pkt_size); in create_clean_packet()
370 pkt.hdr.id = htons(IPV4_PACKET_ID); in create_clean_packet()
371 pkt.hdr.frag_off = htons(IPV4_DEFAULT_FLAG); in create_clean_packet()
372 pkt.hdr.ttl = IPV4_DEFAULT_TTL; in create_clean_packet()
373 pkt.hdr.protocol = IPPROTO_ICMP; in create_clean_packet()
374 pkt.hdr.check = 0; /* Calculate later */ in create_clean_packet()
375 pkt.hdr.saddr = fake_p->saddr.s_addr; in create_clean_packet()
[all …]
/external/libpcap/
Dsf-pcap.c111 static int pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **datap);
157 struct pcap_file_header hdr; in pcap_check_header() local
189 hdr.magic = magic_int; in pcap_check_header()
190 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header()
191 sizeof(hdr) - sizeof(hdr.magic), fp); in pcap_check_header()
192 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header()
199 sizeof(hdr), amt_read); in pcap_check_header()
209 hdr.version_major = SWAPSHORT(hdr.version_major); in pcap_check_header()
210 hdr.version_minor = SWAPSHORT(hdr.version_minor); in pcap_check_header()
211 hdr.thiszone = SWAPLONG(hdr.thiszone); in pcap_check_header()
[all …]
/external/vboot_reference/tests/
Dvboot_common3_tests.c34 VbKeyBlockHeader *hdr; in KeyBlockVerifyTest() local
38 hdr = KeyBlockCreate(data_key, private_key, 0x1234); in KeyBlockVerifyTest()
39 TEST_NEQ((size_t)hdr, 0, "KeyBlockVerify() prerequisites"); in KeyBlockVerifyTest()
40 if (!hdr) in KeyBlockVerifyTest()
42 hsize = (unsigned) hdr->key_block_size; in KeyBlockVerifyTest()
45 TEST_EQ(KeyBlockVerify(hdr, hsize, NULL, 1), 0, in KeyBlockVerifyTest()
47 TEST_EQ(KeyBlockVerify(hdr, hsize, public_key, 0), 0, in KeyBlockVerifyTest()
49 TEST_NEQ(KeyBlockVerify(hdr, hsize, NULL, 0), 0, in KeyBlockVerifyTest()
52 TEST_NEQ(KeyBlockVerify(hdr, hsize - 1, NULL, 1), 0, in KeyBlockVerifyTest()
54 TEST_EQ(KeyBlockVerify(hdr, hsize + 1, NULL, 1), 0, in KeyBlockVerifyTest()
[all …]
Dvb20_common3_tests.c40 struct vb2_keyblock *hdr; in test_verify_keyblock() local
51 hdr = (struct vb2_keyblock *) in test_verify_keyblock()
53 TEST_NEQ((size_t)hdr, 0, "vb2_verify_keyblock() prerequisites"); in test_verify_keyblock()
54 if (!hdr) in test_verify_keyblock()
56 hsize = hdr->keyblock_size; in test_verify_keyblock()
59 Memcpy(h, hdr, hsize); in test_verify_keyblock()
63 Memcpy(h, hdr, hsize); in test_verify_keyblock()
68 Memcpy(h, hdr, hsize); in test_verify_keyblock()
72 Memcpy(h, hdr, hsize); in test_verify_keyblock()
78 Memcpy(h, hdr, hsize); in test_verify_keyblock()
[all …]
/external/vboot_reference/firmware/lib/
Dvboot_audio.c66 VbDevMusic *hdr = CUSTOM_MUSIC_NOTES; in VbGetDevMusicNotes() local
73 "maxsize is %d\n", use_short, hdr, maxsize)); in VbGetDevMusicNotes()
88 if (!hdr || maxsize < sizeof(VbDevMusic)) in VbGetDevMusicNotes()
91 if (0 != Memcmp(hdr->sig, "$SND", sizeof(hdr->sig))) { in VbGetDevMusicNotes()
101 if (hdr->count == 0 || hdr->count > maxnotes) { in VbGetDevMusicNotes()
103 hdr->count, maxnotes)); in VbGetDevMusicNotes()
112 if ((sizeof(VbDevMusicNote) > UINT_MAX / hdr->count) || in VbGetDevMusicNotes()
113 (sizeof(hdr->count) > in VbGetDevMusicNotes()
114 UINT_MAX - hdr->count * sizeof(VbDevMusicNote))) { in VbGetDevMusicNotes()
116 hdr->count)); in VbGetDevMusicNotes()
[all …]
/external/arm-trusted-firmware/plat/ti/k3/common/drivers/ti_sci/
Dti_sci_protocol.h87 struct ti_sci_msg_hdr hdr; member
104 struct ti_sci_msg_hdr hdr; member
136 struct ti_sci_msg_hdr hdr; member
155 struct ti_sci_msg_hdr hdr; member
173 struct ti_sci_msg_hdr hdr; member
197 struct ti_sci_msg_hdr hdr; member
240 struct ti_sci_msg_hdr hdr; member
261 struct ti_sci_msg_hdr hdr; member
278 struct ti_sci_msg_hdr hdr; member
299 struct ti_sci_msg_hdr hdr; member
[all …]
/external/kernel-headers/original/uapi/linux/
Dvirtio_gpu.h146 struct virtio_gpu_ctrl_hdr hdr; member
165 struct virtio_gpu_ctrl_hdr hdr; member
172 struct virtio_gpu_ctrl_hdr hdr; member
181 struct virtio_gpu_ctrl_hdr hdr; member
189 struct virtio_gpu_ctrl_hdr hdr; member
197 struct virtio_gpu_ctrl_hdr hdr; member
212 struct virtio_gpu_ctrl_hdr hdr; member
219 struct virtio_gpu_ctrl_hdr hdr; member
227 struct virtio_gpu_ctrl_hdr hdr; member
244 struct virtio_gpu_ctrl_hdr hdr; member
[all …]
/external/scapy/scapy/contrib/
Dhttp2.uts1102 hdr = pf.hdrs[0]
1103 assert(isinstance(hdr, h2.HPackLitHdrFldWithIncrIndexing))
1104 assert(hdr.magic == 1)
1105 assert(hdr.index == 0)
1106 assert(isinstance(hdr.hdr_name, h2.HPackHdrString))
1107 assert(hdr.hdr_name.type == 1)
1108 assert(hdr.hdr_name.len == 12)
1109 assert(hdr.hdr_name.getfieldval('data').origin() == 'X-Requested-With')
1110 assert(isinstance(hdr.hdr_value, h2.HPackHdrString))
1111 assert(hdr.hdr_value.type == 0)
[all …]
/external/mesa3d/src/mesa/main/
Dprogram_binary.c79 struct program_binary_header *hdr = binary; in write_program_binary() local
81 if (binary_size < sizeof(*hdr)) in write_program_binary()
87 if (payload_size > binary_size - sizeof(*hdr)) in write_program_binary()
90 hdr->internal_format = 0; in write_program_binary()
91 memcpy(hdr->sha1, sha1, sizeof(hdr->sha1)); in write_program_binary()
92 memcpy(hdr + 1, payload, payload_size); in write_program_binary()
93 hdr->size = payload_size; in write_program_binary()
95 hdr->crc32 = util_hash_crc32(hdr + 1, payload_size); in write_program_binary()
102 simple_header_checks(const struct program_binary_header *hdr, unsigned length) in simple_header_checks() argument
104 if (hdr == NULL || length < sizeof(*hdr)) in simple_header_checks()
[all …]
/external/libwebsockets/lib/roles/http/server/
Dfops-zip.c74 lws_fops_zip_hdr_t hdr; member
215 priv->hdr.filename_len = get_u16(buf + ZC_FILE_NAME_LENGTH); in lws_fops_zip_scan()
216 priv->hdr.extra = get_u16(buf + ZC_EXTRA_FIELD_LENGTH); in lws_fops_zip_scan()
217 priv->hdr.filename_start = lws_vfs_tell(priv->zip_fop_fd); in lws_fops_zip_scan()
219 priv->hdr.method = get_u16(buf + ZC_COMPRESSION_METHOD); in lws_fops_zip_scan()
220 priv->hdr.crc32 = get_u32(buf + ZC_CRC32); in lws_fops_zip_scan()
221 priv->hdr.comp_size = get_u32(buf + ZC_COMPRESSED_SIZE); in lws_fops_zip_scan()
222 priv->hdr.uncomp_size = get_u32(buf + ZC_UNCOMPRESSED_SIZE); in lws_fops_zip_scan()
223 priv->hdr.offset = get_u32(buf + ZC_REL_OFFSET_LOCAL_HEADER); in lws_fops_zip_scan()
224 priv->hdr.mod_time = get_u32(buf + ZC_LAST_MOD_FILE_TIME); in lws_fops_zip_scan()
[all …]
/external/wpa_supplicant_8/src/eap_common/
Deap_common.c27 const struct eap_hdr *hdr; in eap_hdr_len_valid() local
33 hdr = wpabuf_head(msg); in eap_hdr_len_valid()
35 if (wpabuf_len(msg) < sizeof(*hdr)) { in eap_hdr_len_valid()
40 len = be_to_host16(hdr->length); in eap_hdr_len_valid()
41 if (len < sizeof(*hdr) + min_payload || len > wpabuf_len(msg)) { in eap_hdr_len_valid()
69 const struct eap_hdr *hdr; in eap_hdr_validate() local
76 hdr = wpabuf_head(msg); in eap_hdr_validate()
77 len = be_to_host16(hdr->length); in eap_hdr_validate()
78 pos = (const u8 *) (hdr + 1); in eap_hdr_validate()
83 if (len < sizeof(*hdr) + 8) { in eap_hdr_validate()
[all …]

12345678910>>...25