Lines Matching defs:file
26 * a file, and then read them later.
27 * The first record in the file contains saved values for the machine
28 * dependent values so we can print the dump file on any architecture.
87 * This is a savefile, not a live capture file, so never say
97 * This is a savefile, not a live capture file, so reject
122 "The kernel buffer size cannot be set while reading from a file");
130 "impossible to set mode while reading from a file");
138 "The mintocopy parameter cannot be set while reading from a file");
214 FILE *file;
223 file = _fdopen(fd, "rb");
224 if ( file == NULL )
230 return pcap_fopen_offline(file, errbuf);
257 * Read the first 4 bytes of the file; the network analyzer dump
258 * file formats we support (pcap and pcap-ng), and several other
267 "error reading dump file: %s",
271 "truncated dump file; tried to read %lu file header bytes, only got %lu",
279 * Try all file types.
301 snprintf(errbuf, PCAP_ERRBUF_SIZE, "unknown file format");
346 * Read packets from a capture file, and call the callback for each