Lines Matching refs:retv
100 int retv; in pcap_activate_libdlpi() local
109 retv = dlpi_open(p->opt.device, &dh, DLPI_RAW|DLPI_PASSIVE); in pcap_activate_libdlpi()
110 if (retv != DLPI_SUCCESS) { in pcap_activate_libdlpi()
111 if (retv == DLPI_ELINKNAMEINVAL || retv == DLPI_ENOLINK) in pcap_activate_libdlpi()
113 else if (retv == DL_SYSERR && in pcap_activate_libdlpi()
118 pcap_libdlpi_err(p->opt.device, "dlpi_open", retv, in pcap_activate_libdlpi()
134 if ((retv = dlpi_bind(pd->dlpi_hd, DLPI_ANY_SAP, 0)) != DLPI_SUCCESS) { in pcap_activate_libdlpi()
136 pcap_libdlpi_err(p->opt.device, "dlpi_bind", retv, p->errbuf); in pcap_activate_libdlpi()
142 retv = dlpromiscon(p, DL_PROMISC_PHYS); in pcap_activate_libdlpi()
143 if (retv < 0) { in pcap_activate_libdlpi()
157 if (retv == PCAP_ERROR_PERM_DENIED) in pcap_activate_libdlpi()
160 status = retv; in pcap_activate_libdlpi()
165 retv = dlpromiscon(p, DL_PROMISC_MULTI); in pcap_activate_libdlpi()
166 if (retv < 0) { in pcap_activate_libdlpi()
167 status = retv; in pcap_activate_libdlpi()
173 retv = dlpromiscon(p, DL_PROMISC_SAP); in pcap_activate_libdlpi()
174 if (retv < 0) { in pcap_activate_libdlpi()
182 status = retv; in pcap_activate_libdlpi()
188 if ((retv = dlpi_info(pd->dlpi_hd, &dlinfo, 0)) != DLPI_SUCCESS) { in pcap_activate_libdlpi()
190 pcap_libdlpi_err(p->opt.device, "dlpi_info", retv, p->errbuf); in pcap_activate_libdlpi()
251 int retv; in dlpromiscon() local
254 retv = dlpi_promiscon(pd->dlpi_hd, level); in dlpromiscon()
255 if (retv != DLPI_SUCCESS) { in dlpromiscon()
256 if (retv == DL_SYSERR && in dlpromiscon()
262 retv, p->errbuf); in dlpromiscon()
287 int retv = 0; in pcap_platform_finddevs() local
306 retv = -1; in pcap_platform_finddevs()
313 retv = -1; in pcap_platform_finddevs()
323 return (retv); in pcap_platform_finddevs()
337 int retv; in pcap_read_libdlpi() local
359 retv = dlpi_recv(pd->dlpi_hd, NULL, NULL, bufp, in pcap_read_libdlpi()
361 if (retv != DLPI_SUCCESS) { in pcap_read_libdlpi()
367 if (retv == DL_SYSERR && errno == EINTR) { in pcap_read_libdlpi()
372 "dlpi_recv", retv, p->errbuf); in pcap_read_libdlpi()
386 int retv; in pcap_inject_libdlpi() local
388 retv = dlpi_send(pd->dlpi_hd, NULL, 0, buf, size, NULL); in pcap_inject_libdlpi()
389 if (retv != DLPI_SUCCESS) { in pcap_inject_libdlpi()
390 pcap_libdlpi_err(dlpi_linkname(pd->dlpi_hd), "dlpi_send", retv, in pcap_inject_libdlpi()