Lines Matching refs:errbuf

260 int acn_parse_hosts_file(char *errbuf) {				/* returns: -1 = error, 0 = OK */
270 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Cannot open '/etc/hosts' for reading."); /* return the nohostsfile error response */
293 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Invalid ACN name in '/etc/hosts'."); /* warn the user */
297 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
307 if (*errbuf) return -1;
553 static int process_client_data (char *errbuf) { /* returns: -1 = error, 0 = OK */
573 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
582 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
593 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
613 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
621 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
633 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
647 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
661 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
679 snprintf(errbuf, PCAP_ERRBUF_SIZE, "realloc: %s", pcap_strerror(errno));
743 static char *get_error_response(int fd, char *errbuf) { /* return a pointer on error, NULL on no error */
749 if (errbuf && (len++ < PCAP_ERRBUF_SIZE)) { /* and if there is still room in the buffer */
750 *errbuf++ = byte; /* stick it in */
751 *errbuf = '\0'; /* ensure the string is null terminated just in case we might exceed the buffer's size */
754 if (len > 1) { return errbuf; }
760 int acn_findalldevs(char *errbuf) { /* returns: -1 = error, 0 = OK */
771 if (get_error_response(u->find_fd, errbuf))
784 if (process_client_data(errbuf))
804 static int acn_open_live(const char *name, char *errbuf, int *linktype) { /* returns 0 on error, else returns the file descriptor */
810 pcap_findalldevs_interfaces(&alldevsp, errbuf);
821 if (get_error_response(u->fd, errbuf)) {
854 strlcpy(p->errbuf, "Sending packets isn't supported on ACN adapters",
886 snprintf(handle->errbuf, sizeof(handle->errbuf),
975 fd = acn_open_live(handle->opt.source, handle->errbuf,
987 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,