Home
last modified time | relevance | path

Searched refs:pdu_len (Results 1 – 15 of 15) sorted by relevance

/external/tcpdump/
Dprint-rpki-rtr.c182 u_int pdu_type, pdu_len, hexdump; in rpki_rtr_pdu_print() local
204 pdu_len = EXTRACT_32BITS(pdu_header->length); in rpki_rtr_pdu_print()
215 pdu_type, pdu_len)); in rpki_rtr_pdu_print()
216 if (pdu_len < sizeof(rpki_rtr_pdu) || pdu_len > len) in rpki_rtr_pdu_print()
227 if (pdu_len != sizeof(rpki_rtr_pdu) + 4) in rpki_rtr_pdu_print()
229 ND_TCHECK2(*tptr, pdu_len); in rpki_rtr_pdu_print()
242 if (pdu_len != sizeof(rpki_rtr_pdu)) in rpki_rtr_pdu_print()
252 if (pdu_len != sizeof(rpki_rtr_pdu)) in rpki_rtr_pdu_print()
264 if (pdu_len != sizeof(rpki_rtr_pdu) + 12) in rpki_rtr_pdu_print()
266 ND_TCHECK2(*tptr, pdu_len); in rpki_rtr_pdu_print()
[all …]
Dprint-isoclns.c624 uint8_t pdu_len[2]; member
633 uint8_t pdu_len[2]; member
638 uint8_t pdu_len[2]; member
647 uint8_t pdu_len[2]; member
654 uint8_t pdu_len[2]; member
2191 u_short packet_len,pdu_len, key_id; in isis_print() local
2332 pdu_len=EXTRACT_16BITS(header_iih_lan->pdu_len); in isis_print()
2333 if (packet_len>pdu_len) { in isis_print()
2334 packet_len=pdu_len; /* do TLV decoding as long as it makes sense */ in isis_print()
2335 length=pdu_len; in isis_print()
[all …]
Dprint-ldp.c567 u_short pdu_len,msg_len,msg_type,msg_tlen; in ldp_pdu_print() local
583 pdu_len = EXTRACT_16BITS(&ldp_com_header->pdu_length); in ldp_pdu_print()
584 if (pdu_len < sizeof(const struct ldp_common_header)-4) { in ldp_pdu_print()
588 pdu_len, in ldp_pdu_print()
598 pdu_len)); in ldp_pdu_print()
606 …tlen = pdu_len - (sizeof(const struct ldp_common_header)-4); /* Type & Length fields not included … in ldp_pdu_print()
687 return pdu_len+4; in ldp_pdu_print()
/external/blktrace/
Dblkparse_fmt.c120 static char *dump_pdu(unsigned char *pdu_buf, int pdu_len) in dump_pdu() argument
125 if (!pdu_buf || !pdu_len) in dump_pdu()
128 for (len = 0, i = 0; i < pdu_len; i++) { in dump_pdu()
139 if (!pdu_buf[i] && pdu_rest_is_zero(pdu_buf + i, pdu_len - i)) { in dump_pdu()
169 int pdu_len, unsigned char *pdu_buf, char field, in print_field() argument
224 char *p = dump_pdu(pdu_buf, pdu_len); in print_field()
263 int pdu_len, unsigned char *pdu_buf, in parse_field() argument
282 print_field(act, pci, t, elapsed, pdu_len, pdu_buf, *p++, in parse_field()
290 int pdu_len, unsigned char *pdu_buf) in process_default() argument
321 char *p = dump_pdu(pdu_buf, pdu_len); in process_default()
[all …]
Dblkrawverify.c117 fprintf(ofp, " %8s: %u\n", "pdu_len", bit->pdu_len); in dump_trace()
196 if (bit->pdu_len) { in process()
199 pdu_buf = malloc(bit->pdu_len); in process()
200 n = fread(pdu_buf, bit->pdu_len, 1, ifp); in process()
Dblkiomon.c124 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()
Dblkparse.c586 if (bit->pdu_len != sizeof(two32)) in handle_notify()
604 if (bit->pdu_len > 0) { in handle_notify()
605 char msg[bit->pdu_len+1]; in handle_notify()
607 memcpy(msg, (char *)payload, bit->pdu_len); in handle_notify()
608 msg[bit->pdu_len] = '\0'; in handle_notify()
755 if (bit_alloc_cache < 1024 && !bit->pdu_len) { in bit_free()
1487 process_fmt(act, pci, t, -1ULL, t->pdu_len, buf); in log_pc()
1642 output_binary(t, sizeof(*t) + t->pdu_len); in dump_trace()
2205 return bit->pdu_len; in get_pdulen()
2207 return __bswap_16(bit->pdu_len); in get_pdulen()
[all …]
Dblktrace.h125 t->pdu_len = be16_to_cpu(t->pdu_len); in trace_to_cpu()
Dblktrace_api.h107 __u16 pdu_len; /* length of data after this trace */ member
Dblktrace.c1397 t_len = sizeof(*t) + t->pdu_len; in handle_list_file()
/external/blktrace/btt/
Dmmap.c69 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()
Dtrace.c62 char msg[iop->t.pdu_len + 1]; in trace_message()
67 memcpy(msg, iop->pdu, iop->t.pdu_len); in trace_message()
68 msg[iop->t.pdu_len] = '\0'; in trace_message()
/external/blktrace/btreplay/
Dbtrecord.c487 __u16 pdu_len; in next_io() local
513 pdu_len = t.pdu_len; in next_io()
520 pdu_len = be16_to_cpu(t.pdu_len); in next_io()
524 if (pdu_len) { in next_io()
525 char buf[pdu_len]; in next_io()
527 ret = read(iip->ifd, buf, pdu_len); in next_io()
532 else if (ret < (ssize_t)pdu_len) { in next_io()
/external/blktrace/iowatcher/
Dblkparse.c155 __u16 pdu_len; /* length of data after this trace */ member
376 if (io->pdu_len != sizeof(two32)) in handle_notify()
391 int skip = trace->io->pdu_len; in next_record()
415 int len = test->pdu_len; in is_io_event()
440 if (offset + sizeof(*test) + test->pdu_len == trace->len) { in find_last_time()
470 int len = test->pdu_len; in parse_fio_bank_message()
/external/kernel-headers/original/uapi/linux/
Dblktrace_api.h112 __u16 pdu_len; /* length of data after this trace */ member