/external/tcpdump/ |
D | print-rpki-rtr.c | 175 u_int pdu_type, pdu_len, hexdump; in rpki_rtr_pdu_print() local 180 pdu_len = EXTRACT_32BITS(pdu_header->length); in rpki_rtr_pdu_print() 181 ND_TCHECK2(*tptr, pdu_len); in rpki_rtr_pdu_print() 188 pdu_type, pdu_len)); in rpki_rtr_pdu_print() 258 tlen = pdu_len; in rpki_rtr_pdu_print() 308 print_unknown_data(ndo,tptr,"\n\t ", pdu_len); in rpki_rtr_pdu_print() 320 u_int tlen, pdu_type, pdu_len; in rpki_rtr_print() local 338 pdu_len = EXTRACT_32BITS(pdu_header->length); in rpki_rtr_print() 339 ND_TCHECK2(*tptr, pdu_len); in rpki_rtr_print() 342 if (!pdu_type || !pdu_len) { in rpki_rtr_print() [all …]
|
D | print-isoclns.c | 619 uint8_t pdu_len[2]; member 628 uint8_t pdu_len[2]; member 633 uint8_t pdu_len[2]; member 642 uint8_t pdu_len[2]; member 649 uint8_t pdu_len[2]; member 2084 u_short packet_len,pdu_len, key_id; in isis_print() local 2236 pdu_len=EXTRACT_16BITS(header_iih_lan->pdu_len); in isis_print() 2237 if (packet_len>pdu_len) { in isis_print() 2238 packet_len=pdu_len; /* do TLV decoding as long as it makes sense */ in isis_print() 2239 length=pdu_len; in isis_print() [all …]
|
D | print-ldp.c | 568 u_short pdu_len,msg_len,msg_type,msg_tlen; in ldp_pdu_print() local 584 pdu_len = EXTRACT_16BITS(&ldp_com_header->pdu_length); in ldp_pdu_print() 585 if (pdu_len < sizeof(const struct ldp_common_header)-4) { in ldp_pdu_print() 589 pdu_len, in ldp_pdu_print() 599 pdu_len)); in ldp_pdu_print() 607 …tlen = pdu_len - (sizeof(const struct ldp_common_header)-4); /* Type & Length fields not included … in ldp_pdu_print() 688 return pdu_len+4; in ldp_pdu_print()
|
/external/blktrace/ |
D | blkparse_fmt.c | 115 static char *dump_pdu(unsigned char *pdu_buf, int pdu_len) in dump_pdu() argument 120 if (!pdu_buf || !pdu_len) in dump_pdu() 123 for (len = 0, i = 0; i < pdu_len; i++) { in dump_pdu() 134 if (!pdu_buf[i] && pdu_rest_is_zero(pdu_buf + i, pdu_len - i)) { in dump_pdu() 164 int pdu_len, unsigned char *pdu_buf, char field, in print_field() argument 219 char *p = dump_pdu(pdu_buf, pdu_len); in print_field() 258 int pdu_len, unsigned char *pdu_buf, in parse_field() argument 277 print_field(act, pci, t, elapsed, pdu_len, pdu_buf, *p++, in parse_field() 285 int pdu_len, unsigned char *pdu_buf) in process_default() argument 316 char *p = dump_pdu(pdu_buf, pdu_len); in process_default() [all …]
|
D | blkrawverify.c | 116 fprintf(ofp, " %8s: %u\n", "pdu_len", bit->pdu_len); in dump_trace() 195 if (bit->pdu_len) { in process() 198 pdu_buf = malloc(bit->pdu_len); in process() 199 n = fread(pdu_buf, bit->pdu_len, 1, ifp); in process()
|
D | blkiomon.c | 124 fprintf(debug.fp, "pdu_len %16d\n", bit->pdu_len); in dump_bit() 151 fprintf(debug.fp, "pdu_len %16d %16d\n", bit1->pdu_len, bit2->pdu_len); in dump_bits() 438 if (fwrite(pdu_buf, bit->pdu_len, 1, drvdata.fp) != 1) in blkiomon_dump_drvdata() 488 if (bit->pdu_len) { in blkiomon_do_fifo() 489 pdu_buf = realloc(pdu_buf, bit->pdu_len); in blkiomon_do_fifo() 490 if (fread(pdu_buf, bit->pdu_len, 1, ifp) != 1) { in blkiomon_do_fifo()
|
D | blkparse.c | 584 if (bit->pdu_len != sizeof(two32)) in handle_notify() 602 if (bit->pdu_len > 0) { in handle_notify() 603 char msg[bit->pdu_len+1]; in handle_notify() 605 memcpy(msg, (char *)payload, bit->pdu_len); in handle_notify() 606 msg[bit->pdu_len] = '\0'; in handle_notify() 753 if (bit_alloc_cache < 1024 && !bit->pdu_len) { in bit_free() 1469 process_fmt(act, pci, t, -1ULL, t->pdu_len, buf); in log_pc() 1624 output_binary(t, sizeof(*t) + t->pdu_len); in dump_trace() 2141 return bit->pdu_len; in get_pdulen() 2143 return __bswap_16(bit->pdu_len); in get_pdulen() [all …]
|
D | blktrace.h | 119 t->pdu_len = be16_to_cpu(t->pdu_len); in trace_to_cpu()
|
D | blktrace_api.h | 106 __u16 pdu_len; /* length of data after this trace */ member
|
D | blktrace.c | 1352 t_len = sizeof(*t) + t->pdu_len; in handle_list_file()
|
/external/blktrace/btt/ |
D | mmap.c | 69 tp->pdu_len = be16_to_cpu(t->pdu_len); in convert_to_cpu() 72 if (tp->pdu_len) { in convert_to_cpu() 73 *pdu = malloc(tp->pdu_len); in convert_to_cpu() 74 memcpy(*pdu, t+1, tp->pdu_len); in convert_to_cpu() 78 return sizeof(*tp) + tp->pdu_len; in convert_to_cpu()
|
D | trace.c | 60 char msg[iop->t.pdu_len + 1]; in trace_message() 65 memcpy(msg, iop->pdu, iop->t.pdu_len); in trace_message() 66 msg[iop->t.pdu_len] = '\0'; in trace_message()
|
/external/fio/ |
D | server.h | 23 uint32_t pdu_len; /* length of post-cmd layload */ member 218 uint32_t pdu_len, uint64_t tag) in __fio_init_net_cmd() argument 225 cmd->pdu_len = cpu_to_le32(pdu_len); in __fio_init_net_cmd() 230 const void *pdu, uint32_t pdu_len, in fio_init_net_cmd() argument 233 __fio_init_net_cmd(cmd, opcode, pdu_len, tag); in fio_init_net_cmd() 236 memcpy(&cmd->payload, pdu, pdu_len); in fio_init_net_cmd()
|
D | blktrace.c | 64 if (t->pdu_len == 0) in discard_pdu() 67 dprint(FD_BLKTRACE, "discard pdu len %u\n", t->pdu_len); in discard_pdu() 68 return trace_fifo_get(td, fifo, fd, NULL, t->pdu_len); in discard_pdu() 322 t->pdu_len = fio_swap16(t->pdu_len); in byteswap_trace() 389 } else if (t.pdu_len != ret) { in load_blktrace() 390 log_err("fio: discarded %d of %d\n", ret, t.pdu_len); in load_blktrace()
|
D | server.c | 202 cmd->pdu_len = le32_to_cpu(cmd->pdu_len); in verify_convert_cmd() 212 if (cmd->pdu_len > FIO_SERVER_MAX_FRAGMENT_PDU) { in verify_convert_cmd() 213 log_err("fio: command payload too large: %u\n", cmd->pdu_len); in verify_convert_cmd() 243 cmd_size = sizeof(cmd) + cmd.pdu_len + 1; in fio_net_recv_cmd() 246 cmd_size += cmd.pdu_len; in fio_net_recv_cmd() 271 if (!cmd.pdu_len) in fio_net_recv_cmd() 276 ret = fio_recv_data(sk, pdu, cmd.pdu_len); in fio_net_recv_cmd() 281 crc = fio_crc16(pdu, cmd.pdu_len); in fio_net_recv_cmd() 289 pdu_offset += cmd.pdu_len; in fio_net_recv_cmd() 291 cmdret->pdu_len += cmd.pdu_len; in fio_net_recv_cmd() [all …]
|
D | blktrace_api.h | 105 __u16 pdu_len; /* length of data after this trace */ member
|
D | client.c | 1256 stream.avail_in = cmd->pdu_len - sizeof(*pdu); in convert_iolog_gz() 1397 fio_server_op(cmd->opcode), client->hostname, cmd->pdu_len); in fio_handle_client()
|
/external/blktrace/btreplay/ |
D | btrecord.c | 490 __u16 pdu_len; in next_io() local 516 pdu_len = t.pdu_len; in next_io() 523 pdu_len = be16_to_cpu(t.pdu_len); in next_io() 527 if (pdu_len) { in next_io() 528 char buf[pdu_len]; in next_io() 530 ret = read(iip->ifd, buf, pdu_len); in next_io() 535 else if (ret < (ssize_t)pdu_len) { in next_io()
|
/external/fio/t/ |
D | btrace2fio.c | 215 if (t->pdu_len == 0) in discard_pdu() 218 return trace_fifo_get(fifo, fd, NULL, t->pdu_len); in discard_pdu() 430 t->pdu_len = fio_swap16(t->pdu_len); in byteswap_trace() 522 } else if (t.pdu_len != ret) { in load_blktrace() 523 log_err("fio: discarded %d of %d\n", ret, t.pdu_len); in load_blktrace()
|
/external/kernel-headers/original/uapi/linux/ |
D | blktrace_api.h | 109 __u16 pdu_len; /* length of data after this trace */ member
|