Home | History | Annotate | Download | only in libpcap

Lines Matching refs:bufsize

371 	p->bufsize = p->snapshot;
372 if (p->bufsize <= 0) {
376 p->bufsize = 65536;
378 p->buffer = malloc(p->bufsize);
493 if (hdr->caplen > p->bufsize) {
535 * We can only keep up to p->bufsize bytes. Since
536 * caplen > p->bufsize is exactly how we got here,
537 * we know we can only keep the first p->bufsize bytes
542 hdr->caplen = p->bufsize;
543 memcpy(p->buffer, (char *)tp, p->bufsize);