Lines Matching refs:ebuf
889 split_dname(char *device, u_int *unitp, char *ebuf) argument
900 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s missing unit number",
912 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s bad unit number", device);
916 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number too large",
921 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number is negative",
930 dl_doattach(int fd, int ppa, char *ebuf) argument
938 if (send_request(fd, (char *)&req, sizeof(req), "attach", ebuf) < 0)
941 err = dlokack(fd, "attach", (char *)buf, ebuf, NULL);
949 dl_dohpuxbind(int fd, char *ebuf) argument
964 if (dlbindreq(fd, hpsap, ebuf) < 0)
966 if (dlbindack(fd, (char *)buf, ebuf, &uerror) >= 0)
985 *ebuf = '\0';
988 pcapint_strlcpy(ebuf,
1158 send_request(int fd, char *ptr, int len, char *what, char *ebuf) argument
1169 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1177 recv_ack(int fd, int size, const char *what, char *bufp, char *ebuf, int *uerror) argument
1198 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1221 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1233 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1245 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1252 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1462 dlbindreq(int fd, bpf_u_int32 sap, char *ebuf) argument
1478 return (send_request(fd, (char *)&req, sizeof(req), "bind", ebuf));
1482 dlbindack(int fd, char *bufp, char *ebuf, int *uerror) argument
1485 return (recv_ack(fd, DL_BIND_ACK_SIZE, "bind", bufp, ebuf, uerror));
1489 dlokack(int fd, const char *what, char *bufp, char *ebuf, int *uerror) argument
1492 return (recv_ack(fd, DL_OK_ACK_SIZE, what, bufp, ebuf, uerror));
1497 dlinforeq(int fd, char *ebuf) argument
1503 return (send_request(fd, (char *)&req, sizeof(req), "info", ebuf));
1507 dlinfoack(int fd, char *bufp, char *ebuf) argument
1510 return (recv_ack(fd, DL_INFO_ACK_SIZE, "info", bufp, ebuf, NULL));
1519 dlpassive(int fd, char *ebuf) argument
1526 if (send_request(fd, (char *)&req, sizeof(req), "dlpassive", ebuf) == 0)
1527 (void) dlokack(fd, "dlpassive", (char *)buf, ebuf, NULL);
1636 u_int *ppa, register char *ebuf) argument
1655 if (send_request(fd, (char *)&req, sizeof(req), "hpppa", ebuf) < 0)
1677 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1682 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1689 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1696 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1704 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1713 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1719 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1724 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1783 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1800 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1805 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1832 u_int *ppa, register char *ebuf) argument
1844 snprintf(ebuf, PCAP_ERRBUF_SIZE, "nlist %s failed",
1849 snprintf(ebuf, PCAP_ERRBUF_SIZE,
1856 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1861 &addr, sizeof(addr), ebuf) < 0) {
1867 &ifnet, sizeof(ifnet), ebuf) < 0 ||
1869 if_name, sizeof(ifnet.if_name), ebuf) < 0) {
1880 snprintf(ebuf, PCAP_ERRBUF_SIZE, "Can't find %s", ifname);
1886 register void *buf, register u_int len, register char *ebuf) argument
1891 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1897 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1901 snprintf(ebuf, PCAP_ERRBUF_SIZE, "short read (%d != %d)", cc,
1910 pcapint_create_interface(const char *device _U_, char *ebuf) argument
1917 p = PCAP_CREATE_COMMON(ebuf, struct pcap_dlpi);