Lines Matching refs:caplen
237 register int caplen, hdrlen; in pcap_read_win32_npf() local
262 caplen = bhp->bh_caplen; in pcap_read_win32_npf()
277 bpf_filter(p->fcode.bf_insns, datap, bhp->bh_datalen, caplen)) { in pcap_read_win32_npf()
282 bp += Packet_WORDALIGN(caplen + hdrlen); in pcap_read_win32_npf()
292 bp += Packet_WORDALIGN(caplen + hdrlen); in pcap_read_win32_npf()
306 int packet_len = 0, caplen = 0; in pcap_read_win32_dag() local
357 caplen = ATM_SNAPLEN; in pcap_read_win32_dag()
365 caplen = erf_record_len - dag_record_size - 2; in pcap_read_win32_dag()
366 if (caplen > packet_len) in pcap_read_win32_dag()
368 caplen = packet_len; in pcap_read_win32_dag()
377 caplen = erf_record_len - dag_record_size; in pcap_read_win32_dag()
378 if (caplen > packet_len) in pcap_read_win32_dag()
380 caplen = packet_len; in pcap_read_win32_dag()
386 if(caplen > p->snapshot) in pcap_read_win32_dag()
387 caplen = p->snapshot; in pcap_read_win32_dag()
430 if (bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen) == 0) in pcap_read_win32_dag()
439 pcap_header.caplen = caplen; in pcap_read_win32_dag()