Lines Matching defs:fp
151 pcap_check_header(bpf_u_int32 magic, FILE *fp, u_int precision, char *errbuf,
185 sizeof(hdr) - sizeof(hdr.magic), fp);
187 if (ferror(fp)) {
401 FILE *fp = p->rfile;
412 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp);
414 if (ferror(fp)) {
521 amt_read = fread((char *)tp, 1, hdr->caplen, fp);
523 if (ferror(fp)) {
546 amt_read = fread(p->buffer, 1, hdr->caplen, fp);
548 if (ferror(fp)) {
569 sf_write_header(pcap_t *p, FILE *fp, int linktype, int thiszone, int snaplen)
582 if (fwrite((char *)&hdr, sizeof(hdr), 1, fp) != 1)