Lines Matching refs:errbuf
194 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized()
199 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized()
211 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized_ptr()
215 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized_ptr()
225 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_getevent_not_initialized()
229 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_getevent_not_initialized()
239 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_sendqueue_transmit_not_initialized()
243 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_sendqueue_transmit_not_initialized()
253 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_get_airpcap_handle_not_initialized()
257 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_get_airpcap_handle_not_initialized()
305 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf), in pcap_list_tstamp_types()
464 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
474 if (pcap_platform_finddevs(&devlist, errbuf) == -1) { in pcap_findalldevs()
490 if (capture_source_types[i].findalldevs_op(&devlist, errbuf) == -1) { in pcap_findalldevs()
782 bpf_u_int32 if_flags, get_if_flags_func get_flags_func, char *errbuf) argument
816 get_flags_func, get_if_description(name), errbuf));
844 char *errbuf)
852 errbuf);
875 dstaddr_size, errbuf));
889 char *errbuf)
898 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
907 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
918 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
931 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
946 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1000 get_if_flags_func get_flags_func, const char *description, char *errbuf)
1022 if ((*get_flags_func)(name, &flags, errbuf) == -1) {
1032 return (add_dev(devlistp, name, flags, description, errbuf));
1075 const char *description, char *errbuf)
1082 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1093 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1109 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1257 pcap_lookupdev(char *errbuf)
1280 if (pcap_findalldevs(&alldevs, errbuf) == -1)
1295 (void)strlcpy(errbuf, "no suitable device found",
1322 char *errbuf)
1360 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1372 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
1375 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1390 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1405 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
1803 const char *name, char *errbuf)
1813 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
1840 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
1859 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
1867 char *name, char *errbuf)
1881 &tmpport, &tmppath, errbuf) == -1) {
1965 pcap_create(const char *device, char *errbuf)
1996 pcap_fmt_errmsg_for_errno(errbuf,
2009 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
2021 p = capture_source_types[i].create_op(device_str, errbuf,
2048 p = pcap_create_interface(device_str, errbuf);
2231 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "can't perform "
2432 if (p->errbuf[0] == '\0') {
2439 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "%s",
2453 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, char *errbuf)
2472 if (pcap_parsesrcstr(device, &srctype, host, port, name, errbuf))
2484 NULL, errbuf));
2487 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "unknown URL scheme \"file\"");
2505 p = pcap_create(device, errbuf);
2534 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", device,
2535 p->errbuf);
2539 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s (%s)", device,
2540 pcap_statustostr(status), p->errbuf);
2542 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", device,
2637 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),
2646 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),
2727 (void) pcap_snprintf(p->errbuf, sizeof(p->errbuf),
2731 (void) pcap_snprintf(p->errbuf, sizeof(p->errbuf),
3137 fprintf(stderr, "%s: %s\n", prefix, p->errbuf);
3143 return (p->errbuf);
3147 pcap_getnonblock(pcap_t *p, char *errbuf)
3162 strlcpy(errbuf, p->errbuf, PCAP_ERRBUF_SIZE);
3179 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3191 pcap_setnonblock(pcap_t *p, int nonblock, char *errbuf)
3206 strlcpy(errbuf, p->errbuf, PCAP_ERRBUF_SIZE);
3225 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3234 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3249 pcap_win32_err_to_str(DWORD error, char *errbuf)
3254 FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, 0, errbuf,
3261 errlen = strlen(errbuf);
3263 errbuf[errlen - 1] = '\0';
3264 errbuf[errlen - 2] = '\0';
3266 p = strchr(errbuf, '\0');
3267 pcap_snprintf (p, PCAP_ERRBUF_SIZE+1-(p-errbuf), " (%lu)", error);
3338 static char errbuf[PCAP_ERRBUF_SIZE];
3339 errno_t err = strerror_s(errbuf, PCAP_ERRBUF_SIZE, errnum);
3342 strlcpy(errbuf, "strerror_s() error", PCAP_ERRBUF_SIZE);
3343 return (errbuf);
3350 static char errbuf[PCAP_ERRBUF_SIZE];
3354 (void)pcap_snprintf(errbuf, sizeof errbuf, "Unknown error: %d", errnum);
3355 return (errbuf);
3375 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3511 (void)pcap_snprintf(p->errbuf, sizeof(p->errbuf),
3564 strlcpy(p->errbuf, "atexit failed", PCAP_ERRBUF_SIZE);
3692 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3701 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3709 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3717 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3725 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3733 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3741 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3749 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3757 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3766 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3774 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3782 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3790 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3798 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3807 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3816 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3824 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3832 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3840 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
3848 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,