Lines Matching defs:total_length
54 bpf_u_int32 total_length;
61 bpf_u_int32 total_length;
296 bhdr.total_length = SWAPLONG(bhdr.total_length);
303 if (bhdr.total_length < sizeof(struct block_header) +
307 bhdr.total_length,
315 if ((bhdr.total_length % 4) != 0) {
321 bhdr.total_length);
328 if (p->bufsize < bhdr.total_length) {
335 if (bhdr.total_length > ps->max_blocksize) {
336 snprintf(errbuf, PCAP_ERRBUF_SIZE, "pcapng block size %u > maximum %u", bhdr.total_length,
340 bigger_buffer = realloc(p->buffer, bhdr.total_length);
354 data_remaining = bhdr.total_length - sizeof(bhdr);
363 btrlr->total_length = SWAPLONG(btrlr->total_length);
369 if (bhdr.total_length != btrlr->total_length) {
773 bpf_u_int32 total_length;
818 amt_read = fread(&total_length, 1, sizeof(total_length), fp);
819 if (amt_read < sizeof(total_length)) {
857 total_length = SWAPLONG(total_length);
863 if (total_length < sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer) ||
864 (total_length > BT_SHB_INSANE_MAX)) {
868 total_length,
928 if (p->bufsize < total_length)
929 p->bufsize = total_length;
946 bhdrp->total_length = total_length;
949 (u_char *)p->buffer + (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)),
950 total_length - (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)),