• Home
  • Raw
  • Download

Lines Matching refs:errbuf

74 …ap_findalldevs_ex(const char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf)  in pcap_findalldevs_ex()  argument
91 snprintf(errbuf, PCAP_ERRBUF_SIZE, "The source string is too long. Cannot handle it correctly."); in pcap_findalldevs_ex()
104 if (pcap_parsesrcstr(source, &type, NULL, NULL, NULL, errbuf) == -1) in pcap_findalldevs_ex()
110 if (pcap_parsesrcstr(source, &type, NULL, NULL, NULL, errbuf) == -1) in pcap_findalldevs_ex()
117 if (pcap_findalldevs(alldevs, errbuf) == -1) in pcap_findalldevs_ex()
122 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_ex()
136 if (pcap_createsrcstr(tmpstring, PCAP_SRC_IFLOCAL, NULL, NULL, dev->name, errbuf) == -1) in pcap_findalldevs_ex()
146 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_ex()
164 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_ex()
190 if (pcap_parsesrcstr(source, &type, NULL, NULL, name, errbuf) == -1) in pcap_findalldevs_ex()
227 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Error when listing files: does folder '%s' exist?", path); in pcap_findalldevs_ex()
240 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Error when listing files: does folder '%s' exist?", path); in pcap_findalldevs_ex()
259 fp = pcap_open_offline(filename, errbuf); in pcap_findalldevs_ex()
267 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_ex()
297 if (pcap_createsrcstr(tmpstring, PCAP_SRC_FILE, NULL, NULL, filename, errbuf) == -1) in pcap_findalldevs_ex()
306 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_ex()
320 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_ex()
346 return pcap_findalldevs_ex_remote(source, auth, alldevs, errbuf); in pcap_findalldevs_ex()
349 pcap_strlcpy(errbuf, "Source type not supported", PCAP_ERRBUF_SIZE); in pcap_findalldevs_ex()
354 …st char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *errbuf) in pcap_open() argument
373 snprintf(errbuf, PCAP_ERRBUF_SIZE, "The source string is too long. Cannot handle it correctly."); in pcap_open()
381 if (pcap_parsesrcstr(source, &type, NULL, NULL, name, errbuf) == -1) in pcap_open()
387 return pcap_open_offline(name, errbuf); in pcap_open()
390 fp = pcap_create(name, errbuf); in pcap_open()
400 return pcap_open_rpcap(source, snaplen, flags, read_timeout, auth, errbuf); in pcap_open()
403 pcap_strlcpy(errbuf, "Source type not supported", PCAP_ERRBUF_SIZE); in pcap_open()
448 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", in pcap_open()
449 name, fp->errbuf); in pcap_open()
453 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s (%s)", in pcap_open()
454 name, pcap_statustostr(status), fp->errbuf); in pcap_open()
456 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", in pcap_open()