Lines Matching defs:pppfd
112 ** (int *) pppfd -- pointer of file descriptor for ppp device
115 void pptp_pppox_open(int *poxfd, int *pppfd)
126 *pppfd = open("/dev/ppp", O_RDWR);
130 *pppfd = -1;
363 ** (int *) pppfd -- pointer of file descriptor for ppp device
369 void pptp_pppox_connect(int *poxfd, int *pppfd,
389 if (*pppfd >= 0) {
391 if ((err = ioctl(*pppfd, PPPIOCATTCHAN, &chindex)) < 0)
393 flags = fcntl(*pppfd, F_GETFL);
394 if (flags == -1 || fcntl(*pppfd, F_SETFL, flags | O_NONBLOCK) == -1)
411 ** (int *) pppfd -- pointer of file descriptor for ppp device
415 void pptp_pppox_release(int *poxfd, int *pppfd)
423 if (*pppfd >= 0) {
425 if (ioctl(*pppfd, PPPIOCDETACH) < 0)