Lines Matching refs:errbuf
168 (void)snprintf(p->errbuf, sizeof(p->errbuf), in pcap_list_tstamp_types()
275 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
277 return (dag_findalldevs(alldevsp, errbuf)); in pcap_findalldevs()
281 pcap_create(const char *source, char *errbuf) in pcap_create() argument
284 return (dag_create(source, errbuf, &is_ours)); in pcap_create()
288 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
290 return (septel_findalldevs(alldevsp, errbuf)); in pcap_findalldevs()
294 pcap_create(const char *source, char *errbuf) in pcap_create() argument
297 return (septel_create(source, errbuf, &is_ours)); in pcap_create()
301 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
303 return (snf_findalldevs(alldevsp, errbuf)); in pcap_findalldevs()
307 pcap_create(const char *source, char *errbuf) in pcap_create() argument
310 return (snf_create(source, errbuf, &is_ours)); in pcap_create()
357 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
364 if (pcap_findalldevs_interfaces(alldevsp, errbuf) == -1) in pcap_findalldevs()
371 if (pcap_platform_finddevs(alldevsp, errbuf) == -1) { in pcap_findalldevs()
388 if (capture_source_types[i].findalldevs_op(alldevsp, errbuf) == -1) { in pcap_findalldevs()
405 pcap_create(const char *source, char *errbuf) in pcap_create() argument
428 p = capture_source_types[i].create_op(source, errbuf, &is_theirs); in pcap_create()
446 return (pcap_create_interface(source, errbuf)); in pcap_create()
580 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "can't perform " in pcap_check_activated()
745 if (p->errbuf[0] == '\0') { in pcap_activate()
752 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "%s", in pcap_activate()
766 pcap_open_live(const char *source, int snaplen, int promisc, int to_ms, char *errbuf) in pcap_open_live() argument
771 p = pcap_create(source, errbuf); in pcap_open_live()
800 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", source, in pcap_open_live()
801 p->errbuf); in pcap_open_live()
805 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s (%s)", source, in pcap_open_live()
806 pcap_statustostr(status), p->errbuf); in pcap_open_live()
808 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", source, in pcap_open_live()
920 (void)snprintf(p->errbuf, sizeof(p->errbuf), in pcap_list_datalinks()
929 (void)snprintf(p->errbuf, sizeof(p->errbuf), in pcap_list_datalinks()
1007 (void) snprintf(p->errbuf, sizeof(p->errbuf), in pcap_set_datalink()
1011 (void) snprintf(p->errbuf, sizeof(p->errbuf), in pcap_set_datalink()
1389 fprintf(stderr, "%s: %s\n", prefix, p->errbuf); in pcap_perror()
1395 return (p->errbuf); in pcap_geterr()
1399 pcap_getnonblock(pcap_t *p, char *errbuf) in pcap_getnonblock() argument
1403 ret = p->getnonblock_op(p, errbuf); in pcap_getnonblock()
1410 strlcpy(p->errbuf, errbuf, PCAP_ERRBUF_SIZE); in pcap_getnonblock()
1424 pcap_getnonblock_fd(pcap_t *p, char *errbuf) in pcap_getnonblock_fd() argument
1430 snprintf(errbuf, PCAP_ERRBUF_SIZE, "F_GETFL: %s", in pcap_getnonblock_fd()
1442 pcap_setnonblock(pcap_t *p, int nonblock, char *errbuf) in pcap_setnonblock() argument
1446 ret = p->setnonblock_op(p, nonblock, errbuf); in pcap_setnonblock()
1453 strlcpy(p->errbuf, errbuf, PCAP_ERRBUF_SIZE); in pcap_setnonblock()
1466 pcap_setnonblock_fd(pcap_t *p, int nonblock, char *errbuf) in pcap_setnonblock_fd() argument
1472 snprintf(errbuf, PCAP_ERRBUF_SIZE, "F_GETFL: %s", in pcap_setnonblock_fd()
1481 snprintf(errbuf, PCAP_ERRBUF_SIZE, "F_SETFL: %s", in pcap_setnonblock_fd()
1499 static char errbuf[PCAP_ERRBUF_SIZE+1]; in pcap_win32strerror() local
1504 FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, 0, errbuf, in pcap_win32strerror()
1511 errlen = strlen(errbuf); in pcap_win32strerror()
1513 errbuf[errlen - 1] = '\0'; in pcap_win32strerror()
1514 errbuf[errlen - 2] = '\0'; in pcap_win32strerror()
1516 p = strchr(errbuf, '\0'); in pcap_win32strerror()
1517 snprintf (p, sizeof(errbuf)-(p-errbuf), " (%lu)", error); in pcap_win32strerror()
1518 return (errbuf); in pcap_win32strerror()
1617 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_setdirection()
1633 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_stats_dead()
1648 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_setbuff_dead()
1662 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_setmode_dead()
1682 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_setmintocopy_dead()
1734 strncpy(p->errbuf, "atexit failed", in pcap_do_addexit()