/external/tcpdump/ |
print-bt.c | 37 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 44 u_int caplen = h->caplen; local 47 if (caplen < BT_HDRLEN) { 51 caplen -= BT_HDRLEN; 58 ND_DEFAULTPRINT(p, caplen);
|
print-802_15_4.c | 93 u_int caplen = h->caplen; local 98 if (caplen < 3) { 99 ND_PRINT((ndo, "[|802.15.4] %x", caplen)); 100 return caplen; 109 caplen -= 3; 116 return caplen; 122 caplen -= hdrlen; 173 caplen -= hdrlen; 177 ND_DEFAULTPRINT(p, caplen); [all...] |
print-sll.c | 191 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 197 u_int caplen = h->caplen; local 203 if (caplen < SLL_HDR_LEN) { 210 return (caplen); 222 caplen -= SLL_HDR_LEN; 250 if (llc_print(ndo, p, length, caplen, NULL, NULL, 268 ND_DEFAULTPRINT(p, caplen); 276 if (caplen < 4 || length < 4) { 295 caplen -= 4 [all...] |
print-symantec.c | 70 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 77 u_int caplen = h->caplen; local 81 if (caplen < sizeof (struct symantec_header)) { 83 return caplen; 90 caplen -= sizeof (struct symantec_header); 102 ND_DEFAULTPRINT(p, caplen); 103 } else if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) { 109 ND_DEFAULTPRINT(p, caplen);
|
print-ap1394.c | 78 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 85 u_int caplen = h->caplen; local 89 if (caplen < FIREWIRE_HDRLEN) { 98 caplen -= FIREWIRE_HDRLEN; 103 if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) { 109 ND_DEFAULTPRINT(p, caplen);
|
print-null.c | 71 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 78 u_int caplen = h->caplen; local 81 if (caplen < NULL_HDRLEN) { 103 caplen -= NULL_HDRLEN; 119 isoclns_print(ndo, p, length, caplen); 135 ND_DEFAULTPRINT(p, caplen);
|
print-sunatm.c | 61 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 68 u_int caplen = h->caplen; local 74 if (caplen < PKT_BEGIN_POS) { 76 return (caplen); 102 caplen -= PKT_BEGIN_POS; 104 atm_print(ndo, vpi, vci, traftype, p, length, caplen);
|
print-arcnet.c | 104 u_int length, u_int caplen); 170 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 176 u_int caplen = h->caplen; local 184 if (caplen < ARC_HDRLEN || length < ARC_HDRLEN) { 186 return (caplen); 205 if (caplen < ARC_HDRNEWLEN || length < ARC_HDRNEWLEN) { 208 return (caplen); 212 if (caplen < ARC_HDRNEWLEN_EXC || length < ARC_HDRNEWLEN_EXC) { 215 return (caplen); 264 u_int caplen = h->caplen; local [all...] |
print-ether.c | 128 const u_char *p, u_int length, u_int caplen, 136 if (caplen < ETHER_HDRLEN || length < ETHER_HDRLEN) { 149 caplen -= ETHER_HDRLEN; 161 if (llc_print(ndo, p, length, caplen, ESRC(ep), EDST(ep), 171 ND_DEFAULTPRINT(p, caplen); 181 if (caplen < 4 || length < 4) { 196 caplen -= 4; 209 if (llc_print(ndo, p, length, caplen, ESRC(ep), EDST(ep), 219 ND_DEFAULTPRINT(p, caplen); 222 if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) [all...] |
print-nflog.c | 76 u_int caplen = h->caplen; local 79 if (caplen < (int) sizeof(nflog_hdr_t) || length < (int) sizeof(nflog_hdr_t)) { 94 caplen -= sizeof(nflog_hdr_t); 98 if (caplen < sizeof(nflog_tlv_t) || length < sizeof(nflog_tlv_t)) { 117 if (caplen < size || length < size) { 132 caplen -= sizeof(nflog_tlv_t); 139 caplen -= size; 160 ND_DEFAULTPRINT(p, caplen);
|
print-cip.c | 57 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 63 u_int caplen = h->caplen; local 67 if (memcmp(rfcllc, p, sizeof(rfcllc))==0 && caplen < RFC1483LLC_LEN) { 79 if (llc_print(ndo, p, length, caplen, NULL, NULL, 89 ND_DEFAULTPRINT(p, caplen);
|
print-lane.c | 77 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 83 lane_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 87 if (caplen < sizeof(struct lane_controlhdr)) { 107 caplen -= 2; 114 ether_print(ndo, p, length, caplen, lane_hdr_print, p - 2); 120 lane_print(ndo, p, h->len, h->caplen);
|
print-ipfc.c | 81 ipfc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 87 if (caplen < IPFC_HDRLEN) { 102 caplen -= IPFC_HDRLEN; 105 if (llc_print(ndo, p, length, caplen, ESRC(&ehdr), EDST(&ehdr), 119 ND_DEFAULTPRINT(p, caplen); 126 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 132 ipfc_print(ndo, p, h->len, h->caplen);
|
print-ppi.c | 55 u_int caplen = h->caplen; local 60 if (caplen < sizeof(ppi_header_t)) { 71 if (caplen < len) { 81 caplen -= len; 93 ND_DEFAULTPRINT(p, caplen); 100 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
|
print-atm.c | 131 const u_char *p, int length, int caplen) 135 if (!llc_print(ndo, p, length, caplen, NULL, NULL, 143 ND_DEFAULTPRINT(p, caplen); 156 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 163 u_int caplen = h->caplen; local 168 if (caplen < 1 || length < 1) { 170 return (caplen); 177 isoclns_print(ndo, p + 1, length - 1, caplen - 1); 185 if (caplen < 3 || length < 3) [all...] |
print-llc.c | 144 llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, 154 if (caplen < 3 || length < 3) { 156 ND_DEFAULTPRINT((u_char *)p, caplen); 180 if (caplen < 4 || length < 4) { 182 ND_DEFAULTPRINT((u_char *)p, caplen); 243 if (caplen < 4 || length < 4) { 245 ND_DEFAULTPRINT((u_char *)p, caplen); 298 isoclns_print(ndo, p + 3, length - 3, caplen - 3); 309 ret = snap_print(ndo, p+3, length-3, caplen-3, 2); 369 snap_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, u_int bridge_pad [all...] |
print-enc.c | 92 register u_int caplen = h->caplen; local 96 if (caplen < ENC_HDRLEN) { 113 caplen -= ENC_HDRLEN;
|
print-pflog.c | 112 u_int caplen = h->caplen; local 117 if (caplen < sizeof(uint8_t)) { 119 return (caplen); 130 if (caplen < hdrlen) { 144 caplen -= hdrlen; 171 ND_DEFAULTPRINT(p, caplen);
|
print-ipnet.c | 56 ipnet_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 60 if (caplen < sizeof(ipnet_hdr_t)) { 69 caplen -= sizeof(ipnet_hdr_t); 89 ND_DEFAULTPRINT(p, caplen); 97 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 104 ipnet_print(ndo, p, h->len, h->caplen);
|
print-pktap.c | 92 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 100 u_int caplen = h->caplen; local 106 if (caplen < sizeof(pktap_header_t) || length < sizeof(pktap_header_t)) { 124 if (caplen < hdrlen || length < hdrlen) { 133 caplen -= hdrlen; 154 ND_DEFAULTPRINT(p, caplen);
|
print-token.c | 149 token_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 159 if (caplen < TOKEN_HDRLEN) { 177 if (caplen < TOKEN_HDRLEN + 2) { 183 if (caplen < hdr_len) { 209 caplen -= hdr_len; 214 if (llc_print(ndo, p, length, caplen, ESRC(&ehdr), EDST(&ehdr), 226 ND_DEFAULTPRINT(p, caplen); 235 ND_DEFAULTPRINT(p, caplen); 243 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 249 return (token_print(ndo, p, h->len, h->caplen)); [all...] |
/external/libpcap/ |
pcap-common.c | 1315 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;
|
dlpisubs.c | 125 int n, caplen, origlen; local 171 caplen = sbp->sbh_msglen; 174 caplen = min(p->snapshot, len); 176 bufp += caplen; 179 if (bpf_filter(p->fcode.bf_insns, pk, origlen, caplen)) { 187 pkthdr.caplen = caplen; 188 /* Insure caplen does not exceed snapshot */ 189 if (pkthdr.caplen > p->snapshot) 190 pkthdr.caplen = p->snapshot [all...] |