/external/tcpdump/ |
print-sunatm.c | 62 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 69 u_int caplen = h->caplen; local 75 if (caplen < PKT_BEGIN_POS) { 77 return (caplen); 103 caplen -= PKT_BEGIN_POS; 105 atm_print(ndo, vpi, vci, traftype, p, length, caplen);
|
print-bt.c | 38 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 45 u_int caplen = h->caplen; local 48 if (caplen < BT_HDRLEN) { 52 caplen -= BT_HDRLEN; 59 ND_DEFAULTPRINT(p, caplen);
|
print-802_15_4.c | 94 u_int caplen = h->caplen; local 99 if (caplen < 3) { 100 ND_PRINT((ndo, "[|802.15.4] %x", caplen)); 101 return caplen; 110 caplen -= 3; 117 return caplen; 123 caplen -= hdrlen; 174 caplen -= hdrlen; 178 ND_DEFAULTPRINT(p, caplen); [all...] |
print-sll.c | 192 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 198 u_int caplen = h->caplen; local 205 if (caplen < SLL_HDR_LEN) { 212 return (caplen); 224 caplen -= SLL_HDR_LEN; 253 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL); 265 ND_DEFAULTPRINT(p, caplen); 273 if (caplen < 4) { 275 return (hdrlen + caplen); [all...] |
print-symantec.c | 71 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 78 u_int caplen = h->caplen; local 82 if (caplen < sizeof (struct symantec_header)) { 84 return caplen; 91 caplen -= sizeof (struct symantec_header); 103 ND_DEFAULTPRINT(p, caplen); 104 } else if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { 110 ND_DEFAULTPRINT(p, caplen);
|
print-cip.c | 56 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 62 u_int caplen = h->caplen; local 68 if (cmplen > caplen) 69 cmplen = caplen; 84 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL); 88 ND_DEFAULTPRINT(p, caplen);
|
print-null.c | 72 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 79 u_int caplen = h->caplen; local 82 if (caplen < NULL_HDRLEN) { 104 caplen -= NULL_HDRLEN; 120 isoclns_print(ndo, p, length, caplen); 136 ND_DEFAULTPRINT(p, caplen);
|
print-arcnet.c | 105 u_int length, u_int caplen); 171 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 177 u_int caplen = h->caplen; local 185 if (caplen < ARC_HDRLEN || length < ARC_HDRLEN) { 187 return (caplen); 206 if (caplen < ARC_HDRNEWLEN || length < ARC_HDRNEWLEN) { 209 return (caplen); 213 if (caplen < ARC_HDRNEWLEN_EXC || length < ARC_HDRNEWLEN_EXC) { 216 return (caplen); 265 u_int caplen = h->caplen; local [all...] |
print-llc.c | 150 llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, 158 if (caplen < 3) { 160 ND_DEFAULTPRINT((const u_char *)p, caplen); 161 return (caplen); 165 ND_DEFAULTPRINT((const u_char *)p, caplen); 190 if (caplen < 4) { 192 ND_DEFAULTPRINT((const u_char *)p, caplen); 193 return (caplen); 197 ND_DEFAULTPRINT((const u_char *)p, caplen); 256 caplen -= hdrlen [all...] |
print-ppi.c | 58 u_int caplen = h->caplen; local 65 if (caplen < sizeof(ppi_header_t)) { 67 return (caplen); 72 if (caplen < len) { 78 return (caplen); 90 caplen -= len; 95 nhdr.caplen = caplen; 103 ND_DEFAULTPRINT(p, caplen); [all...] |
print-ipfc.c | 92 ipfc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 99 if (caplen < IPFC_HDRLEN) { 101 return (caplen); 119 caplen -= IPFC_HDRLEN; 122 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst); 129 ND_DEFAULTPRINT(p, caplen); 138 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 144 return (ipfc_print(ndo, p, h->len, h->caplen));
|
print-ether.c | 130 * FIXME: caplen can and should be derived from ndo->ndo_snapend and p. 134 const u_char *p, u_int length, u_int caplen, 144 if (caplen < ETHER_HDRLEN) { 146 return (caplen); 161 caplen -= ETHER_HDRLEN; 178 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst); 182 ND_DEFAULTPRINT(p, caplen); 194 if (caplen < 4) { 196 return (hdrlen + caplen); 213 caplen -= 4 [all...] |
print-nflog.c | 77 u_int caplen = h->caplen; local 80 if (caplen < (int) sizeof(nflog_hdr_t) || length < (int) sizeof(nflog_hdr_t)) { 95 caplen -= sizeof(nflog_hdr_t); 99 if (caplen < sizeof(nflog_tlv_t) || length < sizeof(nflog_tlv_t)) { 118 if (caplen < size || length < size) { 133 caplen -= sizeof(nflog_tlv_t); 140 caplen -= size; 161 ND_DEFAULTPRINT(p, caplen);
|
print-lane.c | 78 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 84 lane_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 88 if (caplen < sizeof(struct lane_controlhdr)) { 108 caplen -= 2; 115 ether_print(ndo, p, length, caplen, lane_hdr_print, p - 2); 121 lane_print(ndo, p, h->len, h->caplen);
|
print-ap1394.c | 85 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 92 u_int caplen = h->caplen; local 97 if (caplen < FIREWIRE_HDRLEN) { 106 caplen -= FIREWIRE_HDRLEN; 115 if (ethertype_print(ndo, ether_type, p, length, caplen, &src, &dst) == 0) { 121 ND_DEFAULTPRINT(p, caplen);
|
print-enc.c | 93 register u_int caplen = h->caplen; local 97 if (caplen < ENC_HDRLEN) { 114 caplen -= ENC_HDRLEN;
|
print-pflog.c | 113 u_int caplen = h->caplen; local 118 if (caplen < sizeof(uint8_t)) { 120 return (caplen); 131 if (caplen < hdrlen) { 144 caplen -= hdrlen; 171 ND_DEFAULTPRINT(p, caplen);
|
print-ipnet.c | 57 ipnet_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 61 if (caplen < sizeof(ipnet_hdr_t)) { 70 caplen -= sizeof(ipnet_hdr_t); 90 ND_DEFAULTPRINT(p, caplen); 98 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 105 ipnet_print(ndo, p, h->len, h->caplen);
|
print-medsa.c | 89 u_int caplen) 134 ND_DEFAULTPRINT((const u_char *)medsa, caplen); 141 const u_char *bp, u_int length, u_int caplen, 154 medsa_print_full(ndo, medsa, caplen); 158 caplen -= 8; 163 if (llc_print(ndo, bp, length, caplen, src, dst) < 0) { 166 ND_DEFAULTPRINT(bp, caplen); 174 if (ethertype_print(ndo, ether_type, bp, length, caplen, src, dst) == 0) { 183 ND_DEFAULTPRINT(bp, caplen);
|
print-pktap.c | 95 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 103 u_int caplen = h->caplen; local 108 if (caplen < sizeof(pktap_header_t) || length < sizeof(pktap_header_t)) { 126 if (caplen < hdrlen || length < hdrlen) { 135 caplen -= hdrlen; 154 ND_DEFAULTPRINT(p, caplen);
|
print-atm.c | 221 const u_char *p, int length, int caplen) 225 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL); 229 ND_DEFAULTPRINT(p, caplen); 244 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 251 u_int caplen = h->caplen; local 256 if (caplen < 1 || length < 1) { 258 return (caplen); 265 isoclns_print(ndo, p + 1, length - 1, caplen - 1); 273 if (caplen < 3 || length < 3) [all...] |
print-sl.c | 62 register u_int caplen = h->caplen; local 66 if (caplen < SLIP_HDRLEN || length < SLIP_HDRLEN) { 68 return (caplen); 71 caplen -= SLIP_HDRLEN; 79 if (caplen < 1 || length < 1) { 81 return (caplen + SLIP_HDRLEN); 102 register u_int caplen = h->caplen; local 106 if (caplen < SLIP_HDRLEN) [all...] |
/external/libpcap/ |
pcap-common.c | 1192 u_int caplen = hdr->caplen; local 1385 u_int caplen = hdr->caplen; local [all...] |
pcap-enet.c | 57 register int cc, caplen; local 76 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap 79 ph->tap.th_wirelen, caplen)) { 84 ph->tap.th_wirelen, caplen); 91 caplen = cc > snaplen ? snaplen : cc ; 92 if (bpf_filter(fcode, buf.hdr.packet, cc, caplen)) { 95 (*printit)(buf.hdr.packet, &tv, cc, caplen);
|
pcap-septel.c | 78 int caplen = 0; local 129 caplen = p->snapshot ; 132 if (caplen > packet_len) { 134 caplen = packet_len; 137 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) { 156 pcap_header.caplen = caplen;
|