Lines Matching defs:errbuf
108 static int bpf_load(char *errbuf);
370 pcapint_fmt_errmsg_for_errno(p->errbuf,
398 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
417 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
473 * On failure, returns a PCAP_ERROR_ value, and sets p->errbuf.
476 bpf_open(char *errbuf)
490 if (bpf_load(errbuf) == PCAP_ERROR)
507 snprintf(errbuf, PCAP_ERRBUF_SIZE,
512 pcapint_fmt_errmsg_for_errno(errbuf,
563 snprintf(errbuf, PCAP_ERRBUF_SIZE,
573 snprintf(errbuf, PCAP_ERRBUF_SIZE,
585 snprintf(errbuf, PCAP_ERRBUF_SIZE,
595 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
630 bpf_bind(int fd, const char *name, char *errbuf)
645 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
682 snprintf(errbuf, PCAP_ERRBUF_SIZE,
689 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
709 snprintf(errbuf, PCAP_ERRBUF_SIZE,
721 pcapint_fmt_errmsg_for_errno(errbuf,
781 errbuf[0] = '\0';
802 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
808 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
826 bpf_open_and_bind(const char *name, char *errbuf)
834 fd = bpf_open(errbuf);
841 status = bpf_bind(fd, name, errbuf);
863 device_exists(int fd, const char *name, char *errbuf)
890 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, errno,
1044 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
1049 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
1054 status = device_exists(fd, wlt_name, p->errbuf);
1077 fd = bpf_open(p->errbuf);
1084 err = bpf_bind(fd, p->opt.device, p->errbuf);
1105 if (get_dlt_list(fd, DLT_NULL, &bdl, p->errbuf) == PCAP_ERROR) {
1162 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
1278 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
1297 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
1480 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
1492 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
1501 bpf_odminit(char *errbuf)
1508 snprintf(errbuf, PCAP_ERRBUF_SIZE,
1517 snprintf(errbuf, PCAP_ERRBUF_SIZE,
1528 bpf_odmcleanup(char *errbuf)
1533 if (errbuf != NULL) {
1536 snprintf(errbuf, PCAP_ERRBUF_SIZE,
1544 if (errbuf != NULL) {
1547 snprintf(errbuf, PCAP_ERRBUF_SIZE,
1558 bpf_load(char *errbuf)
1576 if (bpf_odminit(errbuf) == PCAP_ERROR)
1581 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1591 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1598 if (bpf_odmcleanup(errbuf) == PCAP_ERROR)
1603 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1613 pcapint_fmt_errmsg_for_errno(errbuf,
1629 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1643 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1803 pcapint_fmt_errmsg_for_errno(p->errbuf,
1809 err = device_exists(fd, en_name, p->errbuf);
1835 pcapint_fmt_errmsg_for_errno(p->errbuf,
1914 fd = bpf_open(p->errbuf);
1923 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
1930 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
1949 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
1993 p->opt.device, p->errbuf);
2013 pcapint_fmt_errmsg_for_errno(p->errbuf,
2021 pcapint_fmt_errmsg_for_errno(p->errbuf,
2064 pcapint_fmt_errmsg_for_errno(p->errbuf,
2080 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
2093 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
2097 pcapint_fmt_errmsg_for_errno(p->errbuf,
2143 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2170 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2180 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2185 status = bpf_bind(fd, p->opt.device, ifnamsiz, p->errbuf);
2214 pcapint_fmt_errmsg_for_errno(p->errbuf,
2224 status = bpf_bind(fd, p->opt.device, p->errbuf);
2266 status = bpf_bind(fd, p->opt.device, p->errbuf);
2289 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
2300 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2333 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "unknown interface type %u",
2367 if (get_dlt_list(fd, v, &bdl, p->errbuf) == -1) {
2518 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2546 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2588 pcapint_fmt_errmsg_for_errno(p->errbuf,
2598 pcapint_fmt_errmsg_for_errno(p->errbuf,
2633 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2646 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Immediate mode not supported");
2655 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2664 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2672 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2683 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2714 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
2795 char errbuf[PCAP_ERRBUF_SIZE];
2825 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
2831 fd = bpf_open_and_bind(en_name, errbuf);
2835 fd = bpf_open_and_bind(name, errbuf);
2869 get_usb_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
2880 finddevs_usb(pcap_if_list_t *devlistp, char *errbuf)
2943 get_usb_if_flags, NULL, errbuf) == NULL) {
2960 get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
2967 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, errno,
3012 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, errno,
3055 get_if_flags(const char *name _U_, bpf_u_int32 *flags, char *errbuf _U_)
3079 pcapint_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf)
3084 if (pcapint_findalldevs_interfaces(devlistp, errbuf, check_bpf_bindable,
3092 if (pcap_add_any_dev(devlistp, errbuf) == NULL)
3097 if (finddevs_usb(devlistp, errbuf) == -1)
3118 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3142 p->errbuf[0] = '\0';
3154 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3174 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3181 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3242 pcapint_fmt_errmsg_for_errno(p->errbuf,
3479 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
3544 pcapint_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),
3597 pcapint_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),
3628 snprintf(p->errbuf, sizeof(p->errbuf),
3647 pcapint_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),
3657 (void) snprintf(p->errbuf, sizeof(p->errbuf),
3668 pcapint_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf),