Home | History | Annotate | Download | only in pppd

Lines Matching full:pppfd

182 static int	pppfd;
601 pppfd = open(PPP_DEV_NAME, O_RDWR | O_NONBLOCK, 0);
602 if (pppfd < 0)
606 strioctl(pppfd, PPPIO_DEBUG, &x, sizeof(int), 0);
610 if (strioctl(pppfd, PPPIO_NEWPPA, &ifunit, 0, sizeof(int)) < 0)
851 if (pppfd >= 0)
852 close(pppfd);
951 strioctl(pppfd, PPPIO_DEBUG, &i, sizeof(int), 0);
968 strioctl(pppfd, PPPIO_DEBUG, &i, sizeof(int), 0);
972 if ((fdmuxid = ioctl(pppfd, I_LINK, fd)) < 0) {
977 return pppfd;
992 if (ioctl(pppfd, I_UNLINK, fdmuxid) < 0) {
1028 if (strioctl(pppfd, PPPIO_GCLEAN, &x, 0, sizeof(x)) < 0)
1327 return pppfd;
1349 while (putmsg(pppfd, NULL, &data, 0) < 0) {
1355 pfd.fd = pppfd;
1462 len = getmsg(pppfd, &ctrl, &data, &flags);
1550 if (strioctl(pppfd, PPPIO_MTU, &mtu, sizeof(mtu), 0) < 0) {
1559 if (strioctl(pppfd, PPPIO_XACCM, &asyncmap, sizeof(asyncmap), 0) < 0)
1565 strioctl(pppfd, PPPIO_CFLAGS, cf, sizeof(cf), sizeof(int)) < 0)
1581 && strioctl(pppfd, PPPIO_XACCM, accm, sizeof(ext_accm), 0) < 0) {
1600 if (strioctl(pppfd, PPPIO_MRU, &mru, sizeof(mru), 0) < 0) {
1609 if (strioctl(pppfd, PPPIO_RACCM, &asyncmap, sizeof(asyncmap), 0) < 0)
1615 strioctl(pppfd, PPPIO_CFLAGS, cf, sizeof(cf), sizeof(int)) < 0)
1629 if (strioctl(pppfd, (for_transmit? PPPIO_XCOMP: PPPIO_RCOMP),
1646 if (strioctl(pppfd, PPPIO_CFLAGS, cf, sizeof(cf), sizeof(int)) < 0) {
1660 return strioctl(pppfd, PPPIO_GIDLE, ip, 0, sizeof(struct ppp_idle)) >= 0;
1674 strioctl(pppfd, PPPIO_GETSTAT, &s, 0, sizeof(s)) < 0) {
1696 if (strioctl(pppfd, PPPIO_PASSFILT, pass,
1703 if (strioctl(pppfd, PPPIO_ACTIVEFILT, active,
1725 if (strioctl(pppfd, PPPIO_CFLAGS, cf, sizeof(cf), sizeof(int)) < 0) {
1746 if (strioctl(pppfd, PPPIO_VJINIT, maxcid, sizeof(maxcid), 0) < 0) {
1754 if (strioctl(pppfd, PPPIO_CFLAGS, cf, sizeof(cf), sizeof(int)) < 0) {
1823 if (strioctl(pppfd, PPPIO_NPMODE, &npi, 2 * sizeof(int), 0) < 0) {