Lines Matching refs:new_bufsize
657 u_int new_bufsize; in pcap_next_packet() local
659 new_bufsize = hdr->caplen; in pcap_next_packet()
663 new_bufsize--; in pcap_next_packet()
664 new_bufsize |= new_bufsize >> 1; in pcap_next_packet()
665 new_bufsize |= new_bufsize >> 2; in pcap_next_packet()
666 new_bufsize |= new_bufsize >> 4; in pcap_next_packet()
667 new_bufsize |= new_bufsize >> 8; in pcap_next_packet()
668 new_bufsize |= new_bufsize >> 16; in pcap_next_packet()
669 new_bufsize++; in pcap_next_packet()
671 if (new_bufsize > (u_int)p->snapshot) in pcap_next_packet()
672 new_bufsize = p->snapshot; in pcap_next_packet()
674 if (!grow_buffer(p, new_bufsize)) in pcap_next_packet()