Lines Matching refs:ebuf
872 split_dname(char *device, u_int *unitp, char *ebuf) argument
883 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s missing unit number",
895 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s bad unit number", device);
899 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number too large",
904 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number is negative",
913 dl_doattach(int fd, int ppa, char *ebuf) argument
921 if (send_request(fd, (char *)&req, sizeof(req), "attach", ebuf) < 0)
924 err = dlokack(fd, "attach", (char *)buf, ebuf);
932 dl_dohpuxbind(int fd, char *ebuf) argument
947 if (dlbindreq(fd, hpsap, ebuf) < 0)
949 if (dlbindack(fd, (char *)buf, ebuf, &uerror) >= 0)
968 *ebuf = '\0';
971 strlcpy(ebuf,
1133 send_request(int fd, char *ptr, int len, char *what, char *ebuf) argument
1144 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1152 recv_ack(int fd, int size, const char *what, char *bufp, char *ebuf, int *uerror) argument
1173 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1196 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1205 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1217 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1224 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1434 dlbindreq(int fd, bpf_u_int32 sap, char *ebuf) argument
1450 return (send_request(fd, (char *)&req, sizeof(req), "bind", ebuf));
1454 dlbindack(int fd, char *bufp, char *ebuf, int *uerror) argument
1457 return (recv_ack(fd, DL_BIND_ACK_SIZE, "bind", bufp, ebuf, uerror));
1461 dlokack(int fd, const char *what, char *bufp, char *ebuf) argument
1464 return (recv_ack(fd, DL_OK_ACK_SIZE, what, bufp, ebuf, NULL));
1469 dlinforeq(int fd, char *ebuf) argument
1475 return (send_request(fd, (char *)&req, sizeof(req), "info", ebuf));
1479 dlinfoack(int fd, char *bufp, char *ebuf) argument
1482 return (recv_ack(fd, DL_INFO_ACK_SIZE, "info", bufp, ebuf, NULL));
1491 dlpassive(int fd, char *ebuf) argument
1498 if (send_request(fd, (char *)&req, sizeof(req), "dlpassive", ebuf) == 0)
1499 (void) dlokack(fd, "dlpassive", (char *)buf, ebuf);
1608 u_int *ppa, register char *ebuf) argument
1627 if (send_request(fd, (char *)&req, sizeof(req), "hpppa", ebuf) < 0)
1649 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1654 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1661 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1668 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1676 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1685 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1691 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1696 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1755 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1772 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1777 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1804 u_int *ppa, register char *ebuf) argument
1816 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "nlist %s failed",
1821 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE,
1828 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1833 &addr, sizeof(addr), ebuf) < 0) {
1839 &ifnet, sizeof(ifnet), ebuf) < 0 ||
1841 if_name, sizeof(ifnet.if_name), ebuf) < 0) {
1852 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "Can't find %s", ifname);
1858 register void *buf, register u_int len, register char *ebuf) argument
1863 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1869 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
1873 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "short read (%d != %d)", cc,
1882 pcap_create_interface(const char *device _U_, char *ebuf) argument
1889 p = pcap_create_common(ebuf, sizeof (struct pcap_dlpi));