Lines Matching refs:errbuf
169 internal_wsockinit(char *errbuf) in internal_wsockinit() argument
188 if (errbuf != NULL) { in internal_wsockinit()
189 pcap_fmt_errmsg_for_win32_err(errbuf, PCAP_ERRBUF_SIZE, in internal_wsockinit()
244 pcap_init(unsigned int opts, char *errbuf) in pcap_init() argument
260 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_init()
271 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_init()
280 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Unknown options specified"); in pcap_init()
304 if (internal_wsockinit(errbuf) == -1) { in pcap_init()
336 (void)snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_set_not_initialized_message()
341 (void)snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_set_not_initialized_message()
536 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf), in pcap_list_tstamp_types()
546 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf), in pcap_list_tstamp_types()
711 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
721 if (pcap_platform_finddevs(&devlist, errbuf) == -1) { in pcap_findalldevs()
737 if (capture_source_types[i].findalldevs_op(&devlist, errbuf) == -1) { in pcap_findalldevs()
1016 bpf_u_int32 if_flags, get_if_flags_func get_flags_func, char *errbuf) argument
1050 get_flags_func, get_if_description(name), errbuf));
1078 char *errbuf) argument
1086 errbuf);
1109 dstaddr_size, errbuf));
1123 char *errbuf) argument
1132 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1141 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1152 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1165 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1180 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1234 get_if_flags_func get_flags_func, const char *description, char *errbuf) argument
1256 if ((*get_flags_func)(name, &flags, errbuf) == -1) {
1266 return (add_dev(devlistp, name, flags, description, errbuf));
1309 const char *description, char *errbuf) argument
1316 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1327 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1343 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1491 pcap_lookupdev(char *errbuf) argument
1525 snprintf(errbuf, PCAP_ERRBUF_SIZE,
1530 if (pcap_findalldevs(&alldevs, errbuf) == -1)
1545 (void)pcap_strlcpy(errbuf, "no suitable device found",
1572 char *errbuf) argument
1613 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1625 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE,
1628 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1643 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1658 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE,
2063 const char *name, unsigned char uses_ssl, char *errbuf) argument
2073 snprintf(errbuf, PCAP_ERRBUF_SIZE,
2102 snprintf(errbuf, PCAP_ERRBUF_SIZE,
2121 snprintf(errbuf, PCAP_ERRBUF_SIZE,
2130 const char *name, char *errbuf) argument
2132 return (pcap_createsrcstr_ex(source, type, host, port, name, 0, errbuf));
2137 char *name, unsigned char *uses_ssl, char *errbuf) argument
2153 &tmpport, &tmppath, errbuf) == -1) {
2245 char *name, char *errbuf) argument
2247 return (pcap_parsesrcstr_ex(source, type, host, port, name, NULL, errbuf));
2252 pcap_create(const char *device, char *errbuf) argument
2312 pcap_fmt_errmsg_for_errno(errbuf,
2325 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
2337 p = capture_source_types[i].create_op(device_str, errbuf,
2364 p = pcap_create_interface(device_str, errbuf);
2540 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "can't perform "
2741 if (p->errbuf[0] == '\0') {
2748 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "%s",
2762 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, char *errbuf) argument
2791 if (pcap_parsesrcstr(device, &srctype, host, port, name, errbuf))
2803 NULL, errbuf));
2806 snprintf(errbuf, PCAP_ERRBUF_SIZE, "unknown URL scheme \"file\"");
2824 p = pcap_create(device, errbuf);
2853 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %.*s", device,
2854 PCAP_ERRBUF_SIZE - 3, p->errbuf);
2858 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s (%.*s)", device,
2859 pcap_statustostr(status), PCAP_ERRBUF_SIZE - 6, p->errbuf);
2861 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", device,
2956 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),
2965 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),
3046 (void) snprintf(p->errbuf, sizeof(p->errbuf),
3050 (void) snprintf(p->errbuf, sizeof(p->errbuf),
3501 fprintf(stderr, "%s: %s\n", prefix, p->errbuf);
3507 return (p->errbuf);
3511 pcap_getnonblock(pcap_t *p, char *errbuf) argument
3526 pcap_strlcpy(errbuf, p->errbuf, PCAP_ERRBUF_SIZE);
3543 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3555 pcap_setnonblock(pcap_t *p, int nonblock, char *errbuf) argument
3570 pcap_strlcpy(errbuf, p->errbuf, PCAP_ERRBUF_SIZE);
3589 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3598 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3673 static char errbuf[PCAP_ERRBUF_SIZE]; local
3674 errno_t err = strerror_s(errbuf, PCAP_ERRBUF_SIZE, errnum);
3677 pcap_strlcpy(errbuf, "strerror_s() error", PCAP_ERRBUF_SIZE);
3678 return (errbuf);
3685 static char errbuf[PCAP_ERRBUF_SIZE];
3689 (void)snprintf(errbuf, sizeof errbuf, "Unknown error: %d", errnum);
3690 return (errbuf);
3710 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3728 snprintf(p->errbuf, sizeof(p->errbuf),
3864 (void)snprintf(p->errbuf, sizeof(p->errbuf),
3937 pcap_strlcpy(p->errbuf, "atexit failed", PCAP_ERRBUF_SIZE);
4028 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
4050 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
4056 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
4169 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4178 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4186 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4194 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4202 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4210 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4218 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4226 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4234 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4243 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4251 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4259 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4267 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4275 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4284 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4293 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4302 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4310 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4319 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
4327 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,