Lines Matching refs:xfd
277 int flag, xfd, logopt, change = 0;
325 xfd = open(IPSTATE_NAME, O_RDWR);
326 if (xfd >= 0) {
328 if (ioctl(xfd, SIOCGETLG, &logopt))
332 if (ioctl(xfd, SIOCSETLG, &logopt))
333 ipferror(xfd, "ioctl(SIOCSETLG)");
335 close(xfd);
342 xfd = open(IPNAT_NAME, O_RDWR);
343 if (xfd >= 0) {
345 if (ioctl(xfd, SIOCGETLG, &logopt))
346 ipferror(xfd, "ioctl(SIOCGETLG)");
349 if (ioctl(xfd, SIOCSETLG, &logopt))
350 ipferror(xfd, "ioctl(SIOCSETLG)");
352 close(xfd);