Home
last modified time | relevance | path

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

12345678910>>...17

/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.c25 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) in asn1_get_next() argument
30 os_memset(hdr, 0, sizeof(*hdr)); in asn1_get_next()
34 hdr->identifier = *pos++; in asn1_get_next()
35 hdr->class = hdr->identifier >> 6; in asn1_get_next()
36 hdr->constructed = !!(hdr->identifier & (1 << 5)); in asn1_get_next()
38 if ((hdr->identifier & 0x1f) == 0x1f) { in asn1_get_next()
39 hdr->tag = 0; in asn1_get_next()
49 hdr->tag = (hdr->tag << 7) | (tmp & 0x7f); in asn1_get_next()
52 hdr->tag = hdr->identifier & 0x1f; in asn1_get_next()
62 hdr->length = 0; in asn1_get_next()
[all …]
Dpkcs1.c205 struct asn1_hdr hdr; in pkcs1_v15_sig_ver() local
234 if (asn1_get_next(decrypted, decrypted_len, &hdr) < 0 || in pkcs1_v15_sig_ver()
235 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs1_v15_sig_ver()
236 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs1_v15_sig_ver()
239 hdr.class, hdr.tag); in pkcs1_v15_sig_ver()
244 pos = hdr.payload; in pkcs1_v15_sig_ver()
245 end = pos + hdr.length; in pkcs1_v15_sig_ver()
255 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs1_v15_sig_ver()
256 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs1_v15_sig_ver()
257 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs1_v15_sig_ver()
[all …]
/external/mesa3d/src/gallium/auxiliary/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/fio/engines/
Dsg.c38 static void sgio_hdr_init(struct sgio_data *sd, struct sg_io_hdr *hdr, in sgio_hdr_init() argument
43 memset(hdr, 0, sizeof(*hdr)); in sgio_hdr_init()
46 hdr->interface_id = 'S'; in sgio_hdr_init()
47 hdr->cmdp = sc->cdb; in sgio_hdr_init()
48 hdr->cmd_len = sizeof(sc->cdb); in sgio_hdr_init()
49 hdr->sbp = sc->sb; in sgio_hdr_init()
50 hdr->mx_sb_len = sizeof(sc->sb); in sgio_hdr_init()
51 hdr->pack_id = io_u->index; in sgio_hdr_init()
52 hdr->usr_ptr = io_u; in sgio_hdr_init()
55 hdr->dxferp = io_u->xfer_buf; in sgio_hdr_init()
[all …]
/external/fio/
Dverify.c31 struct verify_header *hdr, unsigned int header_num,
34 struct verify_header *hdr, unsigned int header_num,
37 struct verify_header *hdr, unsigned int header_num,
104 struct verify_header *hdr; in fill_pattern_headers() local
112 hdr = p; in fill_pattern_headers()
113 populate_hdr(td, io_u, hdr, header_num, hdr_inc); in fill_pattern_headers()
205 struct verify_header *hdr) in hdr_size() argument
210 return __hdr_size(hdr->verify_type); in hdr_size()
213 static void *hdr_priv(struct verify_header *hdr) in hdr_priv() argument
215 void *priv = hdr; in hdr_priv()
[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 …]
Dns-icmpv6_sender.c275 pkt.hdr.ip6_vfc = 6 << 4; in create_mld_query()
276 pkt.hdr.ip6_flow |= 0; in create_mld_query()
277 pkt.hdr.ip6_plen = htons(ip6_psize); in create_mld_query()
278 pkt.hdr.ip6_nxt = IPPROTO_HOPOPTS; in create_mld_query()
279 pkt.hdr.ip6_hlim = 1; in create_mld_query()
280 pkt.hdr.ip6_src = info_p->saddr; in create_mld_query()
281 pkt.hdr.ip6_dst = info_p->daddr; in create_mld_query()
329 pseudo.hdr.p_ip6_src = pkt.hdr.ip6_src; in create_mld_query()
330 pseudo.hdr.p_ip6_dst = pkt.hdr.ip6_dst; in create_mld_query()
331 pseudo.hdr.p_ip6_plen = htons(query_size); in create_mld_query()
[all …]
/external/syslinux/core/lwip/src/include/ipv4/lwip/
Dip.h144 #define IPH_V(hdr) (ntohs((hdr)->_v_hl_tos) >> 12) argument
145 #define IPH_HL(hdr) ((ntohs((hdr)->_v_hl_tos) >> 8) & 0x0f) argument
146 #define IPH_TOS(hdr) (ntohs((hdr)->_v_hl_tos) & 0xff) argument
147 #define IPH_LEN(hdr) ((hdr)->_len) argument
148 #define IPH_ID(hdr) ((hdr)->_id) argument
149 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument
150 #define IPH_TTL(hdr) ((hdr)->_ttl) argument
151 #define IPH_PROTO(hdr) ((hdr)->_proto) argument
152 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument
154 #define IPH_VHLTOS_SET(hdr, v, hl, tos) (hdr)->_v_hl_tos = (htons(((v) << 12) | ((hl) << 8) | (tos)… argument
[all …]
/external/libpcap/
Dsf-pcap.c123 static int pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **datap);
154 struct pcap_file_header hdr; in pcap_check_header() local
183 hdr.magic = magic; in pcap_check_header()
184 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header()
185 sizeof(hdr) - sizeof(hdr.magic), fp); in pcap_check_header()
186 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header()
194 (unsigned long)sizeof(hdr), in pcap_check_header()
205 hdr.version_major = SWAPSHORT(hdr.version_major); in pcap_check_header()
206 hdr.version_minor = SWAPSHORT(hdr.version_minor); in pcap_check_header()
207 hdr.thiszone = SWAPLONG(hdr.thiszone); in pcap_check_header()
[all …]
/external/syslinux/gpxe/src/net/infiniband/
Dib_mi.c76 struct ib_mad_hdr *hdr = &mad->hdr; in ib_mi_handle() local
82 if ( memcmp ( &hdr->tid, &madx->mad.hdr.tid, in ib_mi_handle()
83 sizeof ( hdr->tid ) ) != 0 ) in ib_mi_handle()
93 ( hdr->mgmt_class & IB_MGMT_CLASS_MASK ) ) || in ib_mi_handle()
94 ( agent->class_version != hdr->class_version ) || in ib_mi_handle()
95 ( agent->attr_id != hdr->attr_id ) ) in ib_mi_handle()
104 mi, ntohl ( hdr->tid[0] ), ntohl ( hdr->tid[1] ) ); in ib_mi_handle()
124 struct ib_mad_hdr *hdr; in ib_mi_complete_recv() local
140 hdr = &mad->hdr; in ib_mi_complete_recv()
141 if ( hdr->base_version != IB_MGMT_BASE_VERSION ) { in ib_mi_complete_recv()
[all …]
/external/syslinux/com32/lib/syslinux/
Dload_linux.c128 const struct linux_header *hdr, in calc_cmdline_offset() argument
134 if (hdr->version >= 0x0202 && (hdr->loadflags & LOAD_HIGH)) in calc_cmdline_offset()
157 struct linux_header hdr, *whdr; in bios_boot_linux() local
205 memcpy(&hdr, kernel_buf, sizeof hdr); in bios_boot_linux()
208 if (hdr.boot_flag != BOOT_MAGIC) { in bios_boot_linux()
213 if (hdr.header != LINUX_MAGIC) { in bios_boot_linux()
214 hdr.version = 0x0100; /* Very old kernel */ in bios_boot_linux()
215 hdr.loadflags = 0; in bios_boot_linux()
220 if (!hdr.setup_sects) in bios_boot_linux()
221 hdr.setup_sects = 4; in bios_boot_linux()
[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/syslinux/com32/sysdump/
Dacpi.c48 struct acpi_hdr hdr; member
53 struct acpi_hdr hdr; member
101 const struct acpi_hdr *hdr = ptr; in is_valid_table() local
103 if (hdr->sig[0] == 0) in is_valid_table()
106 if (hdr->len < 10 || hdr->len > (1 << 20)) { in is_valid_table()
111 return checksum_range(hdr, hdr->len) == 0 ? ERR_NONE : ERR_CSUM; in is_valid_table()
180 if (memcmp(rsdt->hdr.sig, "RSDT", 4) || is_valid_table(rsdt) > ERR_CSUM) in dump_rsdt()
183 dump_table(be, rsdt->hdr.sig, rsdt, rsdt->hdr.len); in dump_rsdt()
185 if (rsdt->hdr.len < 36) in dump_rsdt()
188 n = (rsdt->hdr.len - 36) >> 2; in dump_rsdt()
[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 …]
/external/tcpdump/
Dprint-pflog.c89 pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr) in pflog_print() argument
93 rulenr = EXTRACT_32BITS(&hdr->rulenr); in pflog_print()
94 subrulenr = EXTRACT_32BITS(&hdr->subrulenr); in pflog_print()
98 ND_PRINT((ndo, "rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr)); in pflog_print()
101 tok2str(pf_reasons, "unkn(%u)", hdr->reason), in pflog_print()
102 tok2str(pf_actions, "unkn(%u)", hdr->action), in pflog_print()
103 tok2str(pf_directions, "unkn(%u)", hdr->dir), in pflog_print()
104 hdr->ifname)); in pflog_print()
114 const struct pfloghdr *hdr; in pflog_if_print() local
124 hdr = (const struct pfloghdr *)p; in pflog_if_print()
[all …]
/external/fio/t/
Dverify-state.c67 struct verify_state_hdr *hdr = buf; in show_verify_state() local
71 hdr->version = le64_to_cpu(hdr->version); in show_verify_state()
72 hdr->size = le64_to_cpu(hdr->size); in show_verify_state()
73 hdr->crc = le64_to_cpu(hdr->crc); in show_verify_state()
75 printf("Version:\t0x%x\n", (unsigned int) hdr->version); in show_verify_state()
76 printf("Size:\t\t%u\n", (unsigned int) hdr->size); in show_verify_state()
77 printf("CRC:\t\t0x%x\n", (unsigned int) hdr->crc); in show_verify_state()
79 size -= sizeof(*hdr); in show_verify_state()
80 if (hdr->size != size) { in show_verify_state()
85 s = buf + sizeof(*hdr); in show_verify_state()
[all …]
/external/kernel-headers/original/uapi/linux/
Dvirtio_gpu.h110 struct virtio_gpu_ctrl_hdr hdr; member
129 struct virtio_gpu_ctrl_hdr hdr; member
136 struct virtio_gpu_ctrl_hdr hdr; member
145 struct virtio_gpu_ctrl_hdr hdr; member
153 struct virtio_gpu_ctrl_hdr hdr; member
161 struct virtio_gpu_ctrl_hdr hdr; member
176 struct virtio_gpu_ctrl_hdr hdr; member
183 struct virtio_gpu_ctrl_hdr hdr; member
191 struct virtio_gpu_ctrl_hdr hdr; member
208 struct virtio_gpu_ctrl_hdr hdr; member
[all …]

12345678910>>...17