Lines Matching refs:state_fd
65 int state_fd = -1; variable
248 if ((state_fd = open(IPSTATE_NAME, O_RDONLY)) == -1) { in main()
489 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in ipfstate_live()
490 ipferror(state_fd, "ioctl(state:SIOCGETFS)"); in ipfstate_live()
493 if (ioctl(state_fd, SIOCGETLG, &state_logging) == -1) { in ipfstate_live()
494 ipferror(state_fd, "ioctl(state:SIOCGETLG)"); in ipfstate_live()
1140 if (ioctl(state_fd, SIOCGTABL, &obj) != 0) { in showstatestats()
1270 showtqtable_live(state_fd); in showstatestats()
1329 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in topipstates()
1436 (void) ioctl(state_fd, SIOCIPFDELTOK, &token_type); in topipstates()
2123 if (ioctl(state_fd, SIOCGENITER, &obj) != 0) in fetchstate()