/external/tcpdump/ |
D | print-802_15_4.c | 68 u_int caplen = h->caplen; in ieee802_15_4_if_print() local 74 if (caplen < 3) { in ieee802_15_4_if_print() 76 return caplen; in ieee802_15_4_if_print() 84 caplen -= 3; in ieee802_15_4_if_print() 112 if (caplen < 2) { in ieee802_15_4_if_print() 118 caplen -= 2; in ieee802_15_4_if_print() 120 if (caplen < 2) { in ieee802_15_4_if_print() 127 caplen -= 2; in ieee802_15_4_if_print() 131 if (caplen < 2) { in ieee802_15_4_if_print() 137 caplen -= 2; in ieee802_15_4_if_print() [all …]
|
D | print-arcnet.c | 105 u_int length, u_int caplen); 177 u_int caplen = h->caplen; in arcnet_if_print() local 185 if (caplen < ARC_HDRLEN || length < ARC_HDRLEN) { in arcnet_if_print() 187 return (caplen); in arcnet_if_print() 206 if (caplen < ARC_HDRNEWLEN || length < ARC_HDRNEWLEN) { in arcnet_if_print() 209 return (caplen); in arcnet_if_print() 213 if (caplen < ARC_HDRNEWLEN_EXC || length < ARC_HDRNEWLEN_EXC) { in arcnet_if_print() 216 return (caplen); in arcnet_if_print() 236 caplen -= archdrlen; in arcnet_if_print() 246 if (!arcnet_encap_print(ndo, arc_type, p, length, caplen)) in arcnet_if_print() [all …]
|
D | print-llc.c | 150 llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, in llc_print() argument 158 if (caplen < 3) { in llc_print() 160 ND_DEFAULTPRINT((const u_char *)p, caplen); in llc_print() 161 return (caplen); in llc_print() 165 ND_DEFAULTPRINT((const u_char *)p, caplen); in llc_print() 190 if (caplen < 4) { in llc_print() 192 ND_DEFAULTPRINT((const u_char *)p, caplen); in llc_print() 193 return (caplen); in llc_print() 197 ND_DEFAULTPRINT((const u_char *)p, caplen); in llc_print() 256 caplen -= hdrlen; in llc_print() [all …]
|
D | print-ether.c | 134 const u_char *p, u_int length, u_int caplen, in ether_print() argument 144 if (caplen < ETHER_HDRLEN) { in ether_print() 146 return (caplen); in ether_print() 161 caplen -= ETHER_HDRLEN; in ether_print() 178 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst); in ether_print() 182 ND_DEFAULTPRINT(p, caplen); in ether_print() 194 if (caplen < 4) { in ether_print() 196 return (hdrlen + caplen); in ether_print() 213 caplen -= 4; in ether_print() 227 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst); in ether_print() [all …]
|
D | print-sll.c | 198 u_int caplen = h->caplen; in sll_if_print() local 205 if (caplen < SLL_HDR_LEN) { in sll_if_print() 212 return (caplen); in sll_if_print() 224 caplen -= SLL_HDR_LEN; in sll_if_print() 253 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL); in sll_if_print() 265 ND_DEFAULTPRINT(p, caplen); in sll_if_print() 273 if (caplen < 4) { in sll_if_print() 275 return (hdrlen + caplen); in sll_if_print() 296 caplen -= 4; in sll_if_print() 300 if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { in sll_if_print() [all …]
|
D | print-ppi.c | 58 u_int caplen = h->caplen; in ppi_print() local 65 if (caplen < sizeof(ppi_header_t)) { in ppi_print() 67 return (caplen); in ppi_print() 72 if (caplen < len) { in ppi_print() 78 return (caplen); in ppi_print() 90 caplen -= len; in ppi_print() 95 nhdr.caplen = caplen; in ppi_print() 103 ND_DEFAULTPRINT(p, caplen); in ppi_print()
|
D | print-nflog.c | 77 u_int caplen = h->caplen; in nflog_if_print() local 80 if (caplen < (int) sizeof(nflog_hdr_t) || length < (int) sizeof(nflog_hdr_t)) { in nflog_if_print() 95 caplen -= sizeof(nflog_hdr_t); in nflog_if_print() 99 if (caplen < sizeof(nflog_tlv_t) || length < sizeof(nflog_tlv_t)) { in nflog_if_print() 118 if (caplen < size || length < size) { in nflog_if_print() 133 caplen -= sizeof(nflog_tlv_t); in nflog_if_print() 140 caplen -= size; in nflog_if_print() 161 ND_DEFAULTPRINT(p, caplen); in nflog_if_print()
|
D | print-symantec.c | 78 u_int caplen = h->caplen; in symantec_if_print() local 82 if (caplen < sizeof (struct symantec_header)) { in symantec_if_print() 84 return caplen; in symantec_if_print() 91 caplen -= sizeof (struct symantec_header); in symantec_if_print() 103 ND_DEFAULTPRINT(p, caplen); in symantec_if_print() 104 } else if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { in symantec_if_print() 110 ND_DEFAULTPRINT(p, caplen); in symantec_if_print()
|
D | print-atm.c | 221 const u_char *p, int length, int caplen) in atm_llc_print() argument 225 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL); in atm_llc_print() 229 ND_DEFAULTPRINT(p, caplen); in atm_llc_print() 251 u_int caplen = h->caplen; in atm_if_print() local 256 if (caplen < 1 || length < 1) { in atm_if_print() 258 return (caplen); in atm_if_print() 273 if (caplen < 3 || length < 3) { in atm_if_print() 275 return (caplen); in atm_if_print() 305 if (caplen < 20 || length < 20) { in atm_if_print() 307 return (caplen); in atm_if_print() [all …]
|
D | print-pktap.c | 103 u_int caplen = h->caplen; in pktap_if_print() local 109 if (caplen < sizeof(pktap_header_t) || length < sizeof(pktap_header_t)) { in pktap_if_print() 127 if (caplen < hdrlen || length < hdrlen) { in pktap_if_print() 136 caplen -= hdrlen; in pktap_if_print() 149 nhdr.caplen = caplen; in pktap_if_print() 158 ND_DEFAULTPRINT(p, caplen); in pktap_if_print()
|
D | print-cip.c | 62 u_int caplen = h->caplen; in cip_if_print() local 68 if (cmplen > caplen) in cip_if_print() 69 cmplen = caplen; in cip_if_print() 84 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL); in cip_if_print() 88 ND_DEFAULTPRINT(p, caplen); in cip_if_print()
|
D | print-sunatm.c | 69 u_int caplen = h->caplen; in sunatm_if_print() local 75 if (caplen < PKT_BEGIN_POS) { in sunatm_if_print() 77 return (caplen); in sunatm_if_print() 103 caplen -= PKT_BEGIN_POS; in sunatm_if_print() 105 atm_print(ndo, vpi, vci, traftype, p, length, caplen); in sunatm_if_print()
|
D | print-sl.c | 62 register u_int caplen = h->caplen; in sl_if_print() local 66 if (caplen < SLIP_HDRLEN || length < SLIP_HDRLEN) { in sl_if_print() 68 return (caplen); in sl_if_print() 71 caplen -= SLIP_HDRLEN; in sl_if_print() 79 if (caplen < 1 || length < 1) { in sl_if_print() 81 return (caplen + SLIP_HDRLEN); in sl_if_print() 102 register u_int caplen = h->caplen; in sl_bsdos_if_print() local 106 if (caplen < SLIP_HDRLEN) { in sl_bsdos_if_print() 108 return (caplen); in sl_bsdos_if_print()
|
D | print-ipfc.c | 92 ipfc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) in ipfc_print() argument 99 if (caplen < IPFC_HDRLEN) { in ipfc_print() 101 return (caplen); in ipfc_print() 119 caplen -= IPFC_HDRLEN; in ipfc_print() 122 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst); in ipfc_print() 129 ND_DEFAULTPRINT(p, caplen); in ipfc_print() 144 return (ipfc_print(ndo, p, h->len, h->caplen)); in ipfc_if_print()
|
D | print-medsa.c | 89 u_int caplen) in medsa_print_full() argument 134 ND_DEFAULTPRINT((const u_char *)medsa, caplen); in medsa_print_full() 141 const u_char *bp, u_int length, u_int caplen, in medsa_print() argument 154 medsa_print_full(ndo, medsa, caplen); in medsa_print() 158 caplen -= 8; in medsa_print() 163 if (llc_print(ndo, bp, length, caplen, src, dst) < 0) { in medsa_print() 166 ND_DEFAULTPRINT(bp, caplen); in medsa_print() 174 if (ethertype_print(ndo, ether_type, bp, length, caplen, src, dst) == 0) { in medsa_print() 183 ND_DEFAULTPRINT(bp, caplen); in medsa_print()
|
D | print-bt.c | 45 u_int caplen = h->caplen; in bt_if_print() local 48 if (caplen < BT_HDRLEN) { in bt_if_print() 52 caplen -= BT_HDRLEN; in bt_if_print() 59 ND_DEFAULTPRINT(p, caplen); in bt_if_print()
|
D | print-fddi.c | 277 fddi_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) in fddi_print() argument 284 if (caplen < FDDI_HDRLEN) { in fddi_print() 286 return (caplen); in fddi_print() 305 caplen -= FDDI_HDRLEN; in fddi_print() 310 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst); in fddi_print() 317 ND_DEFAULTPRINT(p, caplen); in fddi_print() 321 fddi_smt_print(ndo, p, caplen); in fddi_print() 329 ND_DEFAULTPRINT(p, caplen); in fddi_print() 344 return (fddi_print(ndo, p, h->len, h->caplen)); in fddi_if_print()
|
D | print-pflog.c | 113 u_int caplen = h->caplen; in pflog_if_print() local 118 if (caplen < sizeof(uint8_t)) { in pflog_if_print() 120 return (caplen); in pflog_if_print() 131 if (caplen < hdrlen) { in pflog_if_print() 144 caplen -= hdrlen; in pflog_if_print() 171 ND_DEFAULTPRINT(p, caplen); in pflog_if_print()
|
D | print-token.c | 149 token_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) in token_print() argument 160 if (caplen < TOKEN_HDRLEN) { in token_print() 178 if (caplen < TOKEN_HDRLEN + 2) { in token_print() 184 if (caplen < hdr_len) { in token_print() 215 caplen -= hdr_len; in token_print() 220 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst); in token_print() 224 ND_DEFAULTPRINT(p, caplen); in token_print() 235 ND_DEFAULTPRINT(p, caplen); in token_print() 249 return (token_print(ndo, p, h->len, h->caplen)); in token_if_print()
|
D | print-ap1394.c | 92 u_int caplen = h->caplen; in ap1394_if_print() local 97 if (caplen < FIREWIRE_HDRLEN) { in ap1394_if_print() 106 caplen -= FIREWIRE_HDRLEN; in ap1394_if_print() 115 if (ethertype_print(ndo, ether_type, p, length, caplen, &src, &dst) == 0) { in ap1394_if_print() 121 ND_DEFAULTPRINT(p, caplen); in ap1394_if_print()
|
D | print-lane.c | 84 lane_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) in lane_print() argument 88 if (caplen < sizeof(struct lane_controlhdr)) { in lane_print() 108 caplen -= 2; in lane_print() 115 ether_print(ndo, p, length, caplen, lane_hdr_print, p - 2); in lane_print() 121 lane_print(ndo, p, h->len, h->caplen); in lane_if_print()
|
D | print.c | 330 ndo->ndo_snapend = sp + h->caplen; in pretty_print_packet() 338 ndo->ndo_snapend = sp + h->caplen; in pretty_print_packet() 347 hex_and_ascii_print(ndo, "\n\t", sp, h->caplen); in pretty_print_packet() 354 if (h->caplen > hdrlen) in pretty_print_packet() 356 h->caplen - hdrlen); in pretty_print_packet() 366 hex_print(ndo, "\n\t", sp, h->caplen); in pretty_print_packet() 373 if (h->caplen > hdrlen) in pretty_print_packet() 375 h->caplen - hdrlen); in pretty_print_packet() 385 ascii_print(ndo, sp, h->caplen); in pretty_print_packet() 392 if (h->caplen > hdrlen) in pretty_print_packet() [all …]
|
/external/libpcap/ |
D | pcap-common.c | 1407 u_int caplen = hdr->caplen; in swap_linux_sll_header() local 1413 if (caplen < (u_int) sizeof(struct sll_header) || in swap_linux_sll_header() 1427 if (caplen < (u_int) sizeof(struct sll_header) + sizeof(chdr->can_id) || in swap_linux_sll_header() 1462 if (hdr->caplen < offset) in swap_linux_usb_header() 1469 if (hdr->caplen < offset) in swap_linux_usb_header() 1476 if (hdr->caplen < offset) in swap_linux_usb_header() 1481 if (hdr->caplen < offset) in swap_linux_usb_header() 1486 if (hdr->caplen < offset) in swap_linux_usb_header() 1491 if (hdr->caplen < offset) in swap_linux_usb_header() 1496 if (hdr->caplen < offset) in swap_linux_usb_header() [all …]
|
D | pcap-dag.c | 398 int caplen = 0; in dag_read() local 468 caplen = rlen; in dag_read() 491 if (caplen > packet_len) { in dag_read() 492 caplen = packet_len; in dag_read() 507 caplen = rlen - dag_record_size; in dag_read() 511 caplen = packet_len = ATM_CELL_SIZE; in dag_read() 517 caplen = rlen - dag_record_size - 4; in dag_read() 521 caplen -= (8 * num_ext_hdr); in dag_read() 524 caplen = packet_len = ATM_CELL_SIZE; in dag_read() 542 caplen -= ATM_HDR_SIZE; in dag_read() [all …]
|
D | sf-pcap.c | 476 hdr->caplen = SWAPLONG(sf_hdr.caplen); in pcap_next_packet() 481 hdr->caplen = sf_hdr.caplen; in pcap_next_packet() 519 if (hdr->caplen <= hdr->len) { in pcap_next_packet() 529 t = hdr->caplen; in pcap_next_packet() 530 hdr->caplen = hdr->len; in pcap_next_packet() 538 if (hdr->caplen > max_snaplen_for_dlt(p->linktype)) { in pcap_next_packet() 547 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() 550 "snaplen of %d", hdr->caplen, p->snapshot); in pcap_next_packet() 554 "maximum of %u", hdr->caplen, in pcap_next_packet() 560 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet() [all …]
|