Home | History | Annotate | Download | only in tools

Lines Matching refs:xfd

274 	int	flag, xfd, logopt, change = 0;
322 xfd = open(IPSTATE_NAME, O_RDWR);
323 if (xfd >= 0) {
325 if (ioctl(xfd, SIOCGETLG, &logopt))
329 if (ioctl(xfd, SIOCSETLG, &logopt))
330 ipferror(xfd, "ioctl(SIOCSETLG)");
332 close(xfd);
339 xfd = open(IPNAT_NAME, O_RDWR);
340 if (xfd >= 0) {
342 if (ioctl(xfd, SIOCGETLG, &logopt))
343 ipferror(xfd, "ioctl(SIOCGETLG)");
346 if (ioctl(xfd, SIOCSETLG, &logopt))
347 ipferror(xfd, "ioctl(SIOCSETLG)");
349 close(xfd);