Lines Matching defs:errbuf

73 int pcap_findalldevs_ex(const char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf)
90 snprintf(errbuf, PCAP_ERRBUF_SIZE, "The source string is too long. Cannot handle it correctly.");
103 if (pcap_parsesrcstr(source, &type, NULL, NULL, NULL, errbuf) == -1)
109 if (pcap_parsesrcstr(source, &type, NULL, NULL, NULL, errbuf) == -1)
116 if (pcap_findalldevs(alldevs, errbuf) == -1)
121 snprintf(errbuf, PCAP_ERRBUF_SIZE,
135 if (pcap_createsrcstr(tmpstring, PCAP_SRC_IFLOCAL, NULL, NULL, dev->name, errbuf) == -1)
145 pcapint_fmt_errmsg_for_errno(errbuf,
163 pcapint_fmt_errmsg_for_errno(errbuf,
189 if (pcap_parsesrcstr(source, &type, NULL, NULL, name, errbuf) == -1)
226 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Error when listing files: does folder '%s' exist?", path);
235 snprintf(errbuf, PCAP_ERRBUF_SIZE,
248 snprintf(errbuf, PCAP_ERRBUF_SIZE,
272 fp = pcap_open_offline(filename, errbuf);
280 pcapint_fmt_errmsg_for_errno(errbuf,
315 if (pcap_createsrcstr(tmpstring, PCAP_SRC_FILE, NULL, NULL, filename, errbuf) == -1)
329 pcapint_fmt_errmsg_for_errno(errbuf,
348 pcapint_fmt_errmsg_for_errno(errbuf,
381 return pcap_findalldevs_ex_remote(source, auth, alldevs, errbuf);
384 pcapint_strlcpy(errbuf, "Source type not supported", PCAP_ERRBUF_SIZE);
389 pcap_t *pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *errbuf)
408 snprintf(errbuf, PCAP_ERRBUF_SIZE, "The source string is too long. Cannot handle it correctly.");
416 if (pcap_parsesrcstr(source, &type, NULL, NULL, name, errbuf) == -1)
422 return pcap_open_offline(name, errbuf);
425 fp = pcap_create(name, errbuf);
435 return pcap_open_rpcap(source, snaplen, flags, read_timeout, auth, errbuf);
438 pcapint_strlcpy(errbuf, "Source type not supported", PCAP_ERRBUF_SIZE);
484 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s",
485 name, fp->errbuf);
489 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s (%s)",
490 name, pcap_statustostr(status), fp->errbuf);
492 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s",