Home | History | Annotate | Download | only in libpcap

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");
177 FILE *fp;
223 FILE *file;
232 file = _fdopen(fd, "rb");
233 if ( file == NULL )
239 return pcap_fopen_offline_with_tstamp_precision(file, precision,
250 static pcap_t *(*check_headers[])(bpf_u_int32, FILE *, u_int, char *, int *) = {
261 pcap_fopen_offline_with_tstamp_precision(FILE *fp, u_int precision,
271 * Read the first 4 bytes of the file; the network analyzer dump
272 * file formats we support (pcap and pcap-ng), and several other
281 "error reading dump file: %s",
285 "truncated dump file; tried to read %lu file header bytes, only got %lu",
293 * Try all file types.
312 snprintf(errbuf, PCAP_ERRBUF_SIZE, "unknown file format");
361 pcap_fopen_offline(FILE *fp, char *errbuf)
368 * Read packets from a capture file, and call the callback for each