Lines Matching refs:pd
98 struct pcap_dlpi *pd = p->priv; in pcap_activate_libdlpi() local
122 pd->dlpi_hd = dh; in pcap_activate_libdlpi()
134 if ((retv = dlpi_bind(pd->dlpi_hd, DLPI_ANY_SAP, 0)) != DLPI_SUCCESS) { in pcap_activate_libdlpi()
188 if ((retv = dlpi_info(pd->dlpi_hd, &dlinfo, 0)) != DLPI_SUCCESS) { in pcap_activate_libdlpi()
199 p->fd = dlpi_fd(pd->dlpi_hd); in pcap_activate_libdlpi()
250 struct pcap_dlpi *pd = p->priv; in dlpromiscon() local
254 retv = dlpi_promiscon(pd->dlpi_hd, level); in dlpromiscon()
316 struct pcap_dlpi *pd = p->priv; in pcap_read_libdlpi() local
342 retv = dlpi_recv(pd->dlpi_hd, NULL, NULL, bufp, in pcap_read_libdlpi()
354 pcap_libdlpi_err(dlpi_linkname(pd->dlpi_hd), in pcap_read_libdlpi()
368 struct pcap_dlpi *pd = p->priv; in pcap_inject_libdlpi() local
371 retv = dlpi_send(pd->dlpi_hd, NULL, 0, buf, size, NULL); in pcap_inject_libdlpi()
373 pcap_libdlpi_err(dlpi_linkname(pd->dlpi_hd), "dlpi_send", retv, in pcap_inject_libdlpi()
391 struct pcap_dlpi *pd = p->priv; in pcap_cleanup_libdlpi() local
393 if (pd->dlpi_hd != NULL) { in pcap_cleanup_libdlpi()
394 dlpi_close(pd->dlpi_hd); in pcap_cleanup_libdlpi()
395 pd->dlpi_hd = NULL; in pcap_cleanup_libdlpi()