/external/tcpdump/ |
print-enc.c | 52 register u_int caplen = h->caplen; local 56 if (caplen < ENC_HDRLEN) {
|
print-cip.c | 66 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 72 u_int caplen = h->caplen; local 76 if (memcmp(rfcllc, p, sizeof(rfcllc))==0 && caplen < RFC1483LLC_LEN) { 88 if (llc_print(p, length, caplen, NULL, NULL, 98 default_print(p, caplen);
|
print-null.c | 84 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 91 u_int caplen = h->caplen; local 94 if (caplen < NULL_HDRLEN) { 116 caplen -= NULL_HDRLEN; 134 isoclns_print(p, length, caplen); 150 default_print(p, caplen);
|
print-sll.c | 111 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 117 u_int caplen = h->caplen; local 123 if (caplen < SLL_HDR_LEN) { 130 return (caplen); 142 caplen -= SLL_HDR_LEN; 169 if (llc_print(p, length, caplen, NULL, NULL, 187 default_print(p, caplen); 190 } else if (ether_encap_print(ether_type, p, length, caplen, 196 default_print(p, caplen); [all...] |
print-ap1394.c | 80 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 87 u_int caplen = h->caplen; local 92 if (caplen < FIREWIRE_HDRLEN) { 101 caplen -= FIREWIRE_HDRLEN; 108 if (ether_encap_print(ether_type, p, length, caplen, 115 default_print(p, caplen);
|
print-arcnet.c | 41 u_int length, u_int caplen); 106 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 112 u_int caplen = h->caplen; local 120 if (caplen < ARC_HDRLEN) { 122 return (caplen); 141 if (caplen < ARC_HDRNEWLEN) { 144 return (caplen); 148 if (caplen < ARC_HDRNEWLEN_EXC) { 151 return (caplen); 200 u_int caplen = h->caplen; local [all...] |
print-pflog.c | 121 u_int caplen = h->caplen; local 126 if (caplen < sizeof(u_int8_t)) { 128 return (caplen); 139 if (caplen < hdrlen) { 153 caplen -= hdrlen; 178 default_print(p, caplen);
|
print-sunatm.c | 69 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 75 u_int caplen = h->caplen; local 81 if (caplen < PKT_BEGIN_POS) { 83 return (caplen); 112 caplen -= PKT_BEGIN_POS; 114 atm_print(vpi, vci, traftype, p, length, caplen);
|
print-symantec.c | 76 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 83 u_int caplen = h->caplen; local 88 if (caplen < sizeof (struct symantec_header)) { 90 return caplen; 97 caplen -= sizeof (struct symantec_header); 109 default_print(p, caplen); 110 } else if (ether_encap_print(ether_type, p, length, caplen, 117 default_print(p, caplen);
|
print-sl.c | 54 register u_int caplen = h->caplen; local 58 if (caplen < SLIP_HDRLEN) { 60 return (caplen); 89 register u_int caplen = h->caplen; local 93 if (caplen < SLIP_HDRLEN) { 95 return (caplen);
|
print-atm.c | 104 atm_llc_print(const u_char *p, int length, int caplen) 108 if (!llc_print(p, length, caplen, NULL, NULL, 116 default_print(p, caplen); 129 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 135 u_int caplen = h->caplen; local 140 if (caplen < 8) { 142 return (caplen); 149 isoclns_print(p+1, length-1, caplen-1); 188 caplen -= 20 [all...] |
print-chdlc.c | 57 register u_int caplen = h->caplen; local 59 if (caplen < CHDLC_HDRLEN) { 61 return (caplen);
|
/external/libpcap/ |
pcap-enet.c | 61 register int cc, caplen; local 80 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap 83 ph->tap.th_wirelen, caplen)) { 88 ph->tap.th_wirelen, caplen); 95 caplen = cc > snaplen ? snaplen : cc ; 96 if (bpf_filter(fcode, buf.hdr.packet, cc, caplen)) { 99 (*printit)(buf.hdr.packet, &tv, cc, caplen);
|
pcap-nit.c | 105 register int caplen; local 175 caplen = nh->nh_wirelen; 176 if (caplen > p->snapshot) 177 caplen = p->snapshot; 178 if (bpf_filter(fcode, cp, nh->nh_wirelen, caplen)) { 182 h.caplen = caplen;
|
pcap-septel.c | 90 int caplen = 0; local 141 caplen = p->snapshot ; 144 if (caplen > packet_len) { 146 caplen = packet_len; 149 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) { 168 pcap_header.caplen = caplen;
|
pcap-snoop.c | 67 register u_int caplen; local 110 caplen = (datalen < p->snapshot) ? datalen : p->snapshot; 125 bpf_filter(p->fcode.bf_insns, cp, datalen, caplen)) { 131 h.caplen = caplen;
|
pcap-snit.c | 122 register int caplen; local 186 caplen = nlp->nh_pktlen; 187 if (caplen > p->snapshot) 188 caplen = p->snapshot; 190 if (bpf_filter(fcode, cp, nlp->nh_pktlen, caplen)) { 194 h.caplen = caplen;
|
pcap-bpf.c | 236 register int caplen, hdrlen; local 258 caplen = bhp->bh_caplen; 274 bpf_filter(fcode, datap, bhp->bh_datalen, caplen)) { 288 if (caplen > pad) 289 pkthdr.caplen = caplen - pad; 291 pkthdr.caplen = 0; 298 pkthdr.caplen = caplen; 302 bp += BPF_WORDALIGN(caplen + hdrlen) [all...] |
pcap-win32.c | 144 register int caplen, hdrlen; local 168 caplen = bhp->bh_caplen; 175 bp += BPF_WORDALIGN(caplen + hdrlen); 192 int packet_len = 0, caplen = 0; local 243 caplen = ATM_SNAPLEN; 251 caplen = erf_record_len - dag_record_size - 2; 252 if (caplen > packet_len) 254 caplen = packet_len; 263 caplen = erf_record_len - dag_record_size; 264 if (caplen > packet_len [all...] |
pcap-dag.c | 249 int caplen = 0; local 288 caplen = rlen - dag_record_size; 294 caplen = packet_len = ATM_CELL_SIZE; 302 caplen = rlen - dag_record_size - 4; 307 caplen = packet_len = ATM_CELL_SIZE; 325 caplen -= ATM_HDR_SIZE; 339 caplen = rlen - dag_record_size - 2; 340 if (caplen > packet_len) { 341 caplen = packet_len; 354 caplen = rlen - dag_record_size [all...] |
pcap.h | 143 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap_pkthdr
|
pcap1.h | 136 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap1_info_packet
|
pcap-dlpi.c | 246 register int cc, n, caplen, origlen; local 341 caplen = sbp->sbh_msglen; 344 caplen = min(p->snapshot, cc); 346 bp += caplen; 349 if (bpf_filter(fcode, pk, origlen, caplen)) { 357 pkthdr.caplen = caplen; 358 /* Insure caplen does not exceed snapshot */ 359 if (pkthdr.caplen > p->snapshot) 360 pkthdr.caplen = p->snapshot [all...] |
pcap-int.h | 252 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap_sf_pkthdr 268 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap_sf_patched_pkthdr
|
pcap-linux.c | 472 int packet_len, caplen; local 667 caplen = packet_len; 668 if (caplen > handle->snapshot) 669 caplen = handle->snapshot; 674 packet_len, caplen) == 0) 688 pcap_header.caplen = caplen; [all...] |