Lines Matching refs:total_length
72 bpf_u_int32 total_length; member
79 bpf_u_int32 total_length; member
267 bhdr.total_length = SWAPLONG(bhdr.total_length); in read_block()
277 if (bhdr.total_length > 16*1024*1024) { in read_block()
280 bhdr.total_length, 16*1024*1024); in read_block()
288 if (bhdr.total_length < sizeof(struct block_header) + in read_block()
292 bhdr.total_length, in read_block()
300 if (p->bufsize < bhdr.total_length) { in read_block()
304 p->buffer = realloc(p->buffer, bhdr.total_length); in read_block()
317 bhdr.total_length - sizeof(bhdr), 1, errbuf) == -1) in read_block()
324 cursor->data_remaining = bhdr.total_length - sizeof(bhdr) - in read_block()
649 bpf_u_int32 total_length; in pcap_ng_check_header() local
693 amt_read = fread(&total_length, 1, sizeof(total_length), fp); in pcap_ng_check_header()
694 if (amt_read < sizeof(total_length)) { in pcap_ng_check_header()
734 total_length = SWAPLONG(total_length); in pcap_ng_check_header()
740 if (total_length < sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer)) { in pcap_ng_check_header()
743 total_length, in pcap_ng_check_header()
798 if (p->bufsize < total_length) in pcap_ng_check_header()
799 p->bufsize = total_length; in pcap_ng_check_header()
815 bhdrp->total_length = total_length; in pcap_ng_check_header()
818 p->buffer + (sizeof(magic) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()
819 total_length - (sizeof(magic) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()