Searched refs:devf (Results 1 – 4 of 4) sorted by relevance
| /openbsd-src/usr.sbin/npppd/npppd/ |
| H A D | npppd_iface.c | 114 _this->devf = -1; in npppd_iface_init() 284 if ((_this->devf = priv_open(buf, O_RDWR | O_NONBLOCK)) < 0) { in npppd_iface_start() 289 event_set(&_this->ev, _this->devf, EV_READ | EV_PERSIST, in npppd_iface_start() 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() [all …]
|
| H A D | npppd_iface.h | 37 int devf; member
|
| H A D | npppd.c | 1155 if ((error = ioctl(_this->iface[ppp->ifidx].devf, PIPEXASESSION, &req)) in npppd_ppp_pipex_enable() 1170 error = ioctl(_this->iface[ppp->ifidx].devf, PIPEXSIFDESCR, &descr_req); in npppd_ppp_pipex_enable() 1238 error = ioctl(_this->iface[ppp->ifidx].devf, PIPEXDSESSION, &req); in npppd_ppp_pipex_disable() 1257 int i, devf, error; in pipex_periodic() local 1264 devf = -1; in pipex_periodic() 1267 devf = _this->iface[i].devf; in pipex_periodic() 1271 if (devf >= 0) { in pipex_periodic() 1273 error = ioctl(devf, PIPEXGCLOSED, &req); in pipex_periodic()
|
| H A D | npppd_ctl.c | 367 if (ioctl(iface->devf, PIPEXGSTAT, &req) != 0) in npppd_ppp_get_pipex_stat()
|