• Home
  • Raw
  • Download

Lines Matching refs:errbuf

257 int acn_parse_hosts_file(char *errbuf) {				/* returns: -1 = error, 0 = OK */
267 …snprintf(errbuf, PCAP_ERRBUF_SIZE, "Cannot open '/etc/hosts' for reading."); /* return the nohosts…
290 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Invalid ACN name in '/etc/hosts'."); /* warn the user */
294 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
304 if (*errbuf) return -1;
562 static int process_client_data (char *errbuf) { /* returns: -1 = error, 0 = OK */
582 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
591 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
602 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
622 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
630 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
642 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
656 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
670 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
688 snprintf(errbuf, PCAP_ERRBUF_SIZE, "realloc: %s", pcap_strerror(errno));
754 static char *get_error_response(int fd, char *errbuf) { /* return a pointer on error, NULL on no e…
760 if (errbuf && (len++ < PCAP_ERRBUF_SIZE)) { /* and if there is still room in the buffer */
761 *errbuf++ = byte; /* stick it in */
762 …*errbuf = '\0'; /* ensure the string is null terminated just in case we might exceed the bu…
765 if (len > 1) { return errbuf; }
771 int acn_findalldevs(char *errbuf) { /* returns: -1 = error, 0 = OK */
782 if (get_error_response(u->find_fd, errbuf))
795 if (process_client_data(errbuf))
815 static int acn_open_live(const char *name, char *errbuf, int *linktype) { /* returns 0 on error, e…
821 pcap_findalldevs_interfaces(&alldevsp, errbuf);
832 if (get_error_response(u->fd, errbuf)) {
865 strlcpy(p->errbuf, "Sending packets isn't supported on ACN adapters",
897 snprintf(handle->errbuf, sizeof(handle->errbuf),
986 fd = acn_open_live(handle->opt.source, handle->errbuf,
997 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,