Home | History | Annotate | Download | only in libpcap

Lines Matching refs:fp

854 sf_write_header(FILE *fp, int linktype, int thiszone, int snaplen)
867 if (fwrite((char *)&hdr, sizeof(hdr), 1, fp) != 1)
944 FILE *fp;
949 fp = stdin;
955 SET_BINMODE(fp);
960 fp = fopen(fname, "r");
962 fp = fopen(fname, "rb");
964 if (fp == NULL) {
970 p = pcap_fopen_offline(fp, errbuf);
972 if (fp != stdin)
973 fclose(fp);
979 pcap_fopen_offline(FILE *fp, char *errbuf)
995 amt_read = fread((char *)&hdr, 1, sizeof(hdr), fp);
997 if (ferror(fp)) {
1070 p->sf.rfile = fp;
1149 p->selectable_fd = fileno(fp);
1177 FILE *fp = p->sf.rfile;
1188 amt_read = fread(&sf_hdr, 1, p->sf.hdrsize, fp);
1190 if (ferror(fp)) {
1270 amt_read = fread((char *)tp, 1, hdr->caplen, fp);
1272 if (ferror(fp)) {
1295 amt_read = fread((char *)buf, 1, hdr->caplen, fp);
1297 if (ferror(fp)) {