Home
last modified time | relevance | path

Searched refs:devf (Results 1 – 4 of 4) sorted by relevance

/openbsd/usr.sbin/npppd/npppd/
H A Dnpppd_iface.c114 _this->devf = -1; in npppd_iface_init()
318 if (_this->devf >= 0) { in npppd_iface_start()
320 close(_this->devf); in npppd_iface_start()
322 _this->devf = -1; in npppd_iface_start()
339 if (_this->devf >= 0) { in npppd_iface_stop()
341 close(_this->devf); in npppd_iface_stop()
344 _this->devf = -1; in npppd_iface_stop()
372 NPPPD_IFACE_ASSERT(_this->devf >= 0); in npppd_iface_io_event_handler()
374 sz = read(_this->devf, buffer, sizeof(buffer)); in npppd_iface_io_event_handler()
549 NPPPD_IFACE_ASSERT(_this->devf >= 0); in npppd_iface_write()
[all …]
H A Dnpppd_iface.h37 int devf; member
H A Dnpppd.c1151 if ((error = ioctl(_this->iface[ppp->ifidx].devf, PIPEXASESSION, &req)) in npppd_ppp_pipex_enable()
1166 error = ioctl(_this->iface[ppp->ifidx].devf, PIPEXSIFDESCR, &descr_req); in npppd_ppp_pipex_enable()
1234 error = ioctl(_this->iface[ppp->ifidx].devf, PIPEXDSESSION, &req); in npppd_ppp_pipex_disable()
1253 int i, devf, error; in pipex_periodic() local
1260 devf = -1; in pipex_periodic()
1263 devf = _this->iface[i].devf; in pipex_periodic()
1267 if (devf >= 0) { in pipex_periodic()
1269 error = ioctl(devf, PIPEXGCLOSED, &req); in pipex_periodic()
H A Dnpppd_ctl.c367 if (ioctl(iface->devf, PIPEXGSTAT, &req) != 0) in npppd_ppp_get_pipex_stat()