Home
last modified time | relevance | path

Searched refs:new_bufsize (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/libpcap/
H A Dsf-pcap.c748 u_int new_bufsize; in pcap_next_packet() local
750 new_bufsize = hdr->caplen; in pcap_next_packet()
754 new_bufsize--; in pcap_next_packet()
755 new_bufsize |= new_bufsize >> 1; in pcap_next_packet()
756 new_bufsize |= new_bufsize >> 2; in pcap_next_packet()
757 new_bufsize |= new_bufsize >> 4; in pcap_next_packet()
758 new_bufsize |= new_bufsize >> 8; in pcap_next_packet()
759 new_bufsize |= new_bufsize >> 16; in pcap_next_packet()
760 new_bufsize++; in pcap_next_packet()
762 if (new_bufsize > (u_int)p->snapshot) in pcap_next_packet()
[all …]