Lines Matching refs:pffd
54 int pffd;
56 pffd = open("/dev/pf", O_RDWR);
57 if (pffd == -1)
61 if (ioctl(pffd, DIOCSTARTALTQ) != 0 && errno != EEXIST)
64 if (ioctl(pffd, DIOCSTOPALTQ) != 0 && errno != ENOENT)
67 close(pffd);
75 int pffd;
82 pffd = open("/dev/pf", O_RDONLY);
83 if (pffd == -1) {
88 if (ioctl(pffd, DIOCGETALTQS, &pfioc) != 0) {
90 close(pffd);
95 if (ioctl(pffd, DIOCGETALTQ, &pfioc) != 0) {
99 close(pffd);
108 close(pffd);