Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 25 of 107) sorted by relevance

12345

/external/tcpdump/
Dprint-mobility.c201 unsigned mhlen, hlen; in mobility_print() local
238 hlen = IP6M_MINLEN; in mobility_print()
242 hlen = IP6M_MINLEN; in mobility_print()
244 ND_TCHECK2(*mh, hlen + 8); in mobility_print()
247 EXTRACT_32BITS(&bp[hlen]), in mobility_print()
248 EXTRACT_32BITS(&bp[hlen + 4]))); in mobility_print()
250 hlen += 8; in mobility_print()
256 hlen = IP6M_MINLEN; in mobility_print()
258 ND_TCHECK2(*mh, hlen + 8); in mobility_print()
261 EXTRACT_32BITS(&bp[hlen]), in mobility_print()
[all …]
Dprint-sl.c131 u_int hlen; in sliplink_print() local
158 hlen = IP_HL(ip); in sliplink_print()
159 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]); in sliplink_print()
160 lastlen[dir][lastconn] = length - (hlen << 2); in sliplink_print()
211 register u_int flags, hlen; in compressed_sl_print() local
251 hlen = IP_HL(ip); in compressed_sl_print()
252 hlen += TH_OFF((const struct tcphdr *)&((const int32_t *)ip)[hlen]); in compressed_sl_print()
253 lastlen[dir][lastconn] = length - (hlen << 2); in compressed_sl_print()
Dprint-dccp.c276 u_int hlen; in dccp_print() local
311 hlen = dh->dccph_doff * 4; in dccp_print()
326 ND_PRINT((ndo, " %d", len - hlen)); in dccp_print()
327 if (hlen > len) { in dccp_print()
329 hlen, len)); in dccp_print()
489 if (hlen > fixed_hdrlen){ in dccp_print()
494 hlen -= fixed_hdrlen; in dccp_print()
496 optlen = dccp_print_option(ndo, cp, hlen); in dccp_print()
499 if (hlen <= optlen) in dccp_print()
501 hlen -= optlen; in dccp_print()
[all …]
Dprint-tcp.c167 register u_int hlen; in tcp_print() local
219 hlen = TH_OFF(tp) * 4; in tcp_print()
221 if (hlen < sizeof(*tp)) { in tcp_print()
223 length - hlen, hlen, (unsigned long)sizeof(*tp))); in tcp_print()
233 ND_PRINT((ndo, "tcp %d", length - hlen)); in tcp_print()
234 if (hlen > length) { in tcp_print()
236 hlen, length)); in tcp_print()
362 if (hlen > length) { in tcp_print()
364 hlen, length)); in tcp_print()
400 length -= hlen; in tcp_print()
[all …]
/external/ltp/testcases/kernel/fs/dmapi/
Ddisp.c188 size_t hlen; in main() local
193 rc = dm_path_to_fshandle(DummyFile, &hanp, &hlen); in main()
203 rc = dm_get_config_events((void *)INVALID_ADDR, hlen, in main()
209 dm_handle_free(hanp, hlen); in main()
219 size_t hlen; in main() local
224 rc = dm_path_to_fshandle(DummyFile, &hanp, &hlen); in main()
240 dm_handle_free(hanp, hlen); in main()
252 size_t hlen; in main() local
257 rc = dm_path_to_fshandle(DummyFile, &hanp, &hlen); in main()
267 rc = dm_get_config_events(hanp, hlen, 0, &eventset, in main()
[all …]
Dhole.c124 size_t hlen; in main() local
134 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
147 rc = dm_get_allocinfo(INVALID_ADDR, hanp, hlen, in main()
160 dm_handle_free(hanp, hlen); in main()
171 size_t hlen; in main() local
181 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
194 rc = dm_get_allocinfo(sid, (void *)INVALID_ADDR, hlen, in main()
207 dm_handle_free(hanp, hlen); in main()
220 size_t hlen; in main() local
227 } else if ((rc = dm_path_to_handle(DUMMY_SUBDIR, &hanp, &hlen)) in main()
[all …]
Dconfig.c64 size_t hlen; in main() local
72 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
85 rc = dm_get_config((void *)INVALID_ADDR, hlen, in main()
97 dm_handle_free(hanp, hlen); in main()
108 size_t hlen; in main() local
116 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
141 dm_handle_free(hanp, hlen); in main()
152 size_t hlen; in main() local
160 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
173 rc = dm_get_config(hanp, hlen, INVALID_ADDR, &retval); in main()
[all …]
Dhandle.c144 size_t hlen; in main() local
150 rc = dm_path_to_handle((char *)INVALID_ADDR, &hanp, &hlen); in main()
162 size_t hlen; in main() local
169 rc = dm_path_to_handle(DUMMY_FILE, &hanp, &hlen); in main()
182 size_t hlen; in main() local
195 rc = dm_path_to_handle(DUMMY_FILE, &hanp, &hlen); in main()
199 hlen); in main()
200 dm_LogHandle(hanp, hlen); in main()
212 dm_handle_free(hanp, hlen); in main()
223 size_t hlen; in main() local
[all …]
Dattr.c295 size_t hlen; in main() local
308 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
321 rc = dm_set_dmattr(INVALID_ADDR, hanp, hlen, in main()
334 dm_handle_free(hanp, hlen); in main()
345 size_t hlen; in main() local
358 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
371 rc = dm_set_dmattr(sid, (void *)INVALID_ADDR, hlen, in main()
384 dm_handle_free(hanp, hlen); in main()
395 size_t hlen; in main() local
408 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
[all …]
Dinvis.c236 size_t hlen; in main() local
245 } else if ((rc = dm_path_to_handle(DummyFile, &hanp, &hlen)) == in main()
258 rc = dm_read_invis(INVALID_ADDR, hanp, hlen, in main()
269 dm_handle_free(hanp, hlen); in main()
279 size_t hlen; in main() local
288 } else if ((rc = dm_path_to_handle(DummyFile, &hanp, &hlen)) == in main()
301 rc = dm_read_invis(sid, (void *)INVALID_ADDR, hlen, in main()
312 dm_handle_free(hanp, hlen); in main()
322 size_t hlen; in main() local
331 } else if ((rc = dm_path_to_handle(DummyFile, &hanp, &hlen)) == in main()
[all …]
Dpmr_pre.c153 size_t hlen; local
167 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) {
180 rc = dm_set_region(INVALID_ADDR, hanp, hlen,
193 dm_handle_free(hanp, hlen);
204 size_t hlen; local
218 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) {
231 rc = dm_set_region(sid, (void *)INVALID_ADDR, hlen,
244 dm_handle_free(hanp, hlen);
255 size_t hlen; local
269 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) {
[all …]
Dpmr_post.c198 size_t hlen; in DoTest() local
207 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in DoTest()
220 rc = dm_get_region(sid, hanp, hlen, DM_NO_TOKEN, in DoTest()
289 dm_handle_free(hanp, hlen); in DoTest()
300 size_t hlen; in DoTest() local
317 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in DoTest()
322 dm_set_region(sid, hanp, hlen, DM_NO_TOKEN, nelemin, in DoTest()
326 dm_handle_free(hanp, hlen); in DoTest()
337 rc = dm_get_region(INVALID_ADDR, hanp, hlen, in DoTest()
350 dm_handle_free(hanp, hlen); in DoTest()
[all …]
Dmount.c118 size_t hlen; in main() local
127 } else if ((rc = dm_path_to_fshandle(DummyFile, &hanp, &hlen)) in main()
141 rc = dm_get_mountinfo(INVALID_ADDR, hanp, hlen, in main()
154 dm_handle_free(hanp, hlen); in main()
165 size_t hlen; in main() local
174 } else if ((rc = dm_path_to_fshandle(DummyFile, &hanp, &hlen)) in main()
188 rc = dm_get_mountinfo(sid, (void *)INVALID_ADDR, hlen, in main()
201 dm_handle_free(hanp, hlen); in main()
212 size_t hlen; in main() local
221 } else if ((rc = dm_path_to_fshandle(DummyFile, &hanp, &hlen)) in main()
[all …]
Dright.c161 void DoTest(dm_token_t token, void *hanp, size_t hlen) in DoTest() argument
181 rc = dm_request_right(INVALID_ADDR, hanp, hlen, token, 0, in DoTest()
198 rc = dm_request_right(sid, (void *)INVALID_ADDR, hlen, token, 0, in DoTest()
232 rc = dm_request_right(sid, hanp, hlen, INVALID_ADDR, 0, in DoTest()
252 rc = dm_request_right(sid, hanp, hlen, token, 0, INVALID_ADDR); in DoTest()
268 rc = dm_request_right(sid, hanp, hlen, DM_NO_TOKEN, 0, in DoTest()
287 rc = dm_request_right(sid, hanp, hlen, token, 0, in DoTest()
292 rc = dm_release_right(sid, hanp, hlen, token); in DoTest()
311 rc = dm_request_right(sid, hanp, hlen, token, 0, DM_RIGHT_EXCL); in DoTest()
315 rc = dm_release_right(sid, hanp, hlen, token); in DoTest()
[all …]
Dmmap.c155 size_t hlen; in main() local
169 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
173 dm_handle_free(hanp, hlen); in main()
198 dm_handle_free(hanp, hlen); in main()
209 size_t hlen; in main() local
230 } else if ((rc = dm_fd_to_handle(fd, &hanp, &hlen)) == -1) { in main()
235 dm_set_region(sid, hanp, hlen, DM_NO_TOKEN, in main()
238 dm_handle_free(hanp, hlen); in main()
263 dm_handle_free(hanp, hlen); in main()
274 size_t hlen; in main() local
[all …]
Dobjref.c137 void DoTest(dm_token_t token, void *hanp, size_t hlen) in DoTest() argument
157 rc = dm_obj_ref_hold(INVALID_ADDR, token, hanp, hlen); in DoTest()
173 rc = dm_obj_ref_hold(sid, INVALID_ADDR, hanp, hlen); in DoTest()
189 rc = dm_obj_ref_hold(sid, token, (void *)INVALID_ADDR, hlen); in DoTest()
218 rc = dm_obj_ref_hold(sid, token, hanp, hlen); in DoTest()
228 rc = dm_obj_ref_hold(sid, token, hanp, hlen); in DoTest()
232 rc = dm_obj_ref_rele(sid, token, hanp, hlen); in DoTest()
252 rc = dm_obj_ref_hold(sid, token, hanp, hlen); in DoTest()
255 dm_obj_ref_query(sid, token, hanp, hlen)) == 1) { in DoTest()
274 rc = dm_obj_ref_rele(sid, token, hanp, hlen); in DoTest()
[all …]
Devent_am.c628 size_t hlen; in main() local
637 } else if ((rc = dm_path_to_handle(DummySubdir, &hanp, &hlen)) in main()
642 dm_set_eventlist(sid, hanp, hlen, DM_NO_TOKEN, in main()
644 dm_handle_free(hanp, hlen); in main()
704 dm_handle_free(hanp, hlen); in main()
714 size_t hlen; in main() local
723 } else if ((rc = dm_path_to_handle(DummySubdir, &hanp, &hlen)) in main()
728 dm_set_eventlist(sid, hanp, hlen, DM_NO_TOKEN, in main()
730 dm_handle_free(hanp, hlen); in main()
795 dm_handle_free(hanp, hlen); in main()
[all …]
/external/syslinux/core/lwip/src/netif/ppp/
Dvj.c142 register u_short hlen = IPH_HL(ip); in vj_compress_tcp() local
166 th = (struct tcp_hdr *)&((long *)ip)[hlen]; in vj_compress_tcp()
216 hlen += TCPH_OFFSET(th); in vj_compress_tcp()
217 hlen <<= 2; in vj_compress_tcp()
219 if (hlen > pb->len) { in vj_compress_tcp()
237 oth = (struct tcp_hdr *)&((long *)&cs->cs_ip)[hlen]; in vj_compress_tcp()
238 deltaS = hlen; in vj_compress_tcp()
239 hlen += TCPH_OFFSET(th); in vj_compress_tcp()
240 hlen <<= 2; in vj_compress_tcp()
242 if (hlen > pb->len) { in vj_compress_tcp()
[all …]
/external/toybox/toys/pending/
Dwatch.c29 int i = 0, hlen; local
42 hlen = strlen(header);
50 if (width > (hlen + len)) xprintf("%s", header);
52 xprintf("%*s\n",width + ((width > (hlen + len))?-hlen:0) + 1, ctime(&t));
/external/wpa_supplicant_8/src/tls/
Dtlsv1_client_write.c577 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local
619 hlen = SHA256_MAC_LEN; in tls_write_client_certificate_verify()
621 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) < in tls_write_client_certificate_verify()
644 os_memmove(hash + 19, hash, hlen); in tls_write_client_certificate_verify()
645 hlen += 19; in tls_write_client_certificate_verify()
651 hlen = MD5_MAC_LEN; in tls_write_client_certificate_verify()
653 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) { in tls_write_client_certificate_verify()
664 hlen = SHA1_MAC_LEN; in tls_write_client_certificate_verify()
666 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { in tls_write_client_certificate_verify()
674 hlen += MD5_MAC_LEN; in tls_write_client_certificate_verify()
[all …]
Dtlsv1_common.c344 size_t hlen; in tlsv12_key_x_server_params_hash() local
351 hlen = SHA256_MAC_LEN; in tlsv12_key_x_server_params_hash()
355 hlen = 48; in tlsv12_key_x_server_params_hash()
359 hlen = 64; in tlsv12_key_x_server_params_hash()
370 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tlsv12_key_x_server_params_hash()
373 return hlen; in tlsv12_key_x_server_params_hash()
384 size_t hlen; in tls_key_x_server_params_hash() local
395 hlen = MD5_MAC_LEN; in tls_key_x_server_params_hash()
396 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tls_key_x_server_params_hash()
398 hpos += hlen; in tls_key_x_server_params_hash()
[all …]
/external/syslinux/gpxe/src/usr/
Ddhcpmgmt.c41 uint8_t hlen; in dhcp() local
54 chaddr = dhcp_chaddr ( netdev, &hlen, &flags ); in dhcp()
56 while ( hlen-- ) in dhcp()
57 printf ( "%02x%c", *(chaddr++), ( hlen ? ':' : ')' ) ); in dhcp()
/external/tcpdump/tests/
Disis_4-v.out2 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
22 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
42 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
62 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
82 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
102 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
122 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
142 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
162 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
179 L2 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
[all …]
Disis_3-v.out2 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
20 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
38 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
56 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
74 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
94 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
114 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
134 L2 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
154 L2 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
162 L2 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0)
[all …]
/external/syslinux/core/lwip/src/core/ipv4/
Dicmp.c85 s16_t hlen; in icmp_input() local
92 hlen = IPH_HL(iphdr) * 4; in icmp_input()
93 if (pbuf_header(p, -hlen) || (p->tot_len < sizeof(u16_t)*2)) { in icmp_input()
151 if (pbuf_header(p, hlen)) { in icmp_input()
162 (r->len >= hlen + sizeof(struct icmp_echo_hdr))); in icmp_input()
170 if (pbuf_header(r, -hlen)) { in icmp_input()
213 if(pbuf_header(p, hlen)) { in icmp_input()

12345