Home | History | Annotate | Download | only in libpcap

Lines Matching defs:fp

231 read_bytes(FILE *fp, void *buf, size_t bytes_to_read, int fail_on_eof,
236 amt_read = fread(buf, 1, bytes_to_read, fp);
238 if (ferror(fp)) {
256 read_block(FILE *fp, pcap_t *p, struct block_cursor *cursor, char *errbuf)
261 status = read_bytes(fp, &bhdr, sizeof(bhdr), 0, errbuf);
316 if (read_bytes(fp, p->buffer + sizeof(bhdr),
645 pcap_ng_check_header(bpf_u_int32 magic, FILE *fp, u_int precision, char *errbuf,
693 amt_read = fread(&total_length, 1, sizeof(total_length), fp);
695 if (ferror(fp)) {
709 amt_read = fread(&byte_order_magic, 1, sizeof(byte_order_magic), fp);
711 if (ferror(fp)) {
817 if (read_bytes(fp,
855 status = read_block(fp, p, &cursor, errbuf);
956 FILE *fp = p->rfile;
968 status = read_block(fp, p, &cursor, p->errbuf);