Lines Matching refs:outfile
8 FILE * outfile = NULL;
32 if (outfile != NULL) {
33 fclose(outfile);
35 outfile = fopen(name, "w");
47 if (outfile == NULL) {
48 outfile = fopen("/dev/null", "w");
49 if (outfile == NULL) {
62 fprintf(outfile, "Couldn't open pcap file %s\n", errbuf);
70 fprintf(outfile, "packet length=%d/%d\n",header->caplen, header->len);
74 fprintf(outfile, "number of packets=%d\n", stats.ps_recv);