Lines Matching refs:total_length
55 bpf_u_int32 total_length;
62 bpf_u_int32 total_length;
295 bhdr.total_length = SWAPLONG(bhdr.total_length);
302 if (bhdr.total_length < sizeof(struct block_header) +
306 bhdr.total_length,
314 if ((bhdr.total_length % 4) != 0) {
320 bhdr.total_length);
327 if (p->bufsize < bhdr.total_length) {
334 if (bhdr.total_length > ps->max_blocksize) {
335 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "pcapng block size %u > maximum %u", bhdr.total_length,
339 bigger_buffer = realloc(p->buffer, bhdr.total_length);
353 data_remaining = bhdr.total_length - sizeof(bhdr);
362 btrlr->total_length = SWAPLONG(btrlr->total_length);
368 if (bhdr.total_length != btrlr->total_length) {
769 bpf_u_int32 total_length;
814 amt_read = fread(&total_length, 1, sizeof(total_length), fp);
815 if (amt_read < sizeof(total_length)) {
853 total_length = SWAPLONG(total_length);
859 if (total_length < sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer) ||
860 (total_length > BT_SHB_INSANE_MAX)) {
864 total_length,
924 if (p->bufsize < total_length)
925 p->bufsize = total_length;
942 bhdrp->total_length = total_length;
945 (u_char *)p->buffer + (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)),
946 total_length - (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)),