Lines Matching refs:errbuf

255 int acn_parse_hosts_file(char *errbuf) {				/* returns: -1 = error, 0 = OK */
265 …snprintf(errbuf, PCAP_ERRBUF_SIZE, "Cannot open '/etc/hosts' for reading."); /* return the nohosts…
288 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Invalid ACN name in '/etc/hosts'."); /* warn the user */
292 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
302 if (*errbuf) return -1;
560 static int process_client_data (char *errbuf) { /* returns: -1 = error, 0 = OK */
580 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
589 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
600 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
620 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
628 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
640 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
654 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
668 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
686 snprintf(errbuf, PCAP_ERRBUF_SIZE, "realloc: %s", pcap_strerror(errno));
752 static char *get_error_response(int fd, char *errbuf) { /* return a pointer on error, NULL on no e…
758 if (errbuf && (len++ < PCAP_ERRBUF_SIZE)) { /* and if there is still room in the buffer */
759 *errbuf++ = byte; /* stick it in */
760 …*errbuf = '\0'; /* ensure the string is null terminated just in case we might exceed the bu…
763 if (len > 1) { return errbuf; }
769 int acn_findalldevs(char *errbuf) { /* returns: -1 = error, 0 = OK */
780 if (get_error_response(u->find_fd, errbuf))
793 if (process_client_data(errbuf))
813 static int acn_open_live(const char *name, char *errbuf, int *linktype) { /* returns 0 on error, e…
819 pcap_findalldevs_interfaces(&alldevsp, errbuf);
830 if (get_error_response(u->fd, errbuf)) {
863 strlcpy(p->errbuf, "Sending packets isn't supported on ACN adapters",
895 snprintf(handle->errbuf, sizeof(handle->errbuf),
984 fd = acn_open_live(handle->opt.source, handle->errbuf,
995 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,