Lines Matching refs:caplen
310 int caplen = 0; in dag_read() local
387 caplen = rlen; in dag_read()
410 if (caplen > packet_len) { in dag_read()
411 caplen = packet_len; in dag_read()
426 caplen = rlen - dag_record_size; in dag_read()
430 caplen = packet_len = ATM_CELL_SIZE; in dag_read()
436 caplen = rlen - dag_record_size - 4; in dag_read()
440 caplen -= (8 * num_ext_hdr); in dag_read()
443 caplen = packet_len = ATM_CELL_SIZE; in dag_read()
461 caplen -= ATM_HDR_SIZE; in dag_read()
472 caplen = rlen - dag_record_size - 2; in dag_read()
474 caplen -= (8 * num_ext_hdr); in dag_read()
475 if (caplen > packet_len) { in dag_read()
476 caplen = packet_len; in dag_read()
487 caplen = rlen - dag_record_size; in dag_read()
489 caplen -= (8 * num_ext_hdr); in dag_read()
490 if (caplen > packet_len) { in dag_read()
491 caplen = packet_len; in dag_read()
499 caplen = rlen - dag_record_size - 4; in dag_read()
501 caplen -= (8 * num_ext_hdr); in dag_read()
502 if (caplen > packet_len) { in dag_read()
503 caplen = packet_len; in dag_read()
510 caplen += MTP2_HDR_LEN; in dag_read()
517 memcpy(TempPkt+MTP2_HDR_LEN, dp, caplen); in dag_read()
526 caplen = rlen - dag_record_size; in dag_read()
528 caplen -= (8 * num_ext_hdr); in dag_read()
529 if (caplen > packet_len) { in dag_read()
530 caplen = packet_len; in dag_read()
551 if (caplen > p->snapshot) in dag_read()
552 caplen = p->snapshot; in dag_read()
555 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) { in dag_read()
586 pcap_header.caplen = caplen; in dag_read()