Lines Matching refs:pd
103 struct pcap_dlpi *pd = p->priv; in pcap_activate_libdlpi() local
125 pd->dlpi_hd = dh; in pcap_activate_libdlpi()
137 if ((retv = dlpi_bind(pd->dlpi_hd, DLPI_ANY_SAP, 0)) != DLPI_SUCCESS) { in pcap_activate_libdlpi()
184 if ((retv = dlpi_info(pd->dlpi_hd, &dlinfo, 0)) != DLPI_SUCCESS) { in pcap_activate_libdlpi()
192 p->fd = dlpi_fd(pd->dlpi_hd); in pcap_activate_libdlpi()
238 struct pcap_dlpi *pd = p->priv; in dlpromiscon() local
242 retv = dlpi_promiscon(pd->dlpi_hd, level); in dlpromiscon()
304 struct pcap_dlpi *pd = p->priv; in pcap_read_libdlpi() local
330 retv = dlpi_recv(pd->dlpi_hd, NULL, NULL, bufp, in pcap_read_libdlpi()
342 pcap_libdlpi_err(dlpi_linkname(pd->dlpi_hd), in pcap_read_libdlpi()
356 struct pcap_dlpi *pd = p->priv; in pcap_inject_libdlpi() local
359 retv = dlpi_send(pd->dlpi_hd, NULL, 0, buf, size, NULL); in pcap_inject_libdlpi()
361 pcap_libdlpi_err(dlpi_linkname(pd->dlpi_hd), "dlpi_send", retv, in pcap_inject_libdlpi()
379 struct pcap_dlpi *pd = p->priv; in pcap_cleanup_libdlpi() local
381 if (pd->dlpi_hd != NULL) { in pcap_cleanup_libdlpi()
382 dlpi_close(pd->dlpi_hd); in pcap_cleanup_libdlpi()
383 pd->dlpi_hd = NULL; in pcap_cleanup_libdlpi()