Lines Matching refs:state_fd
64 int state_fd = -1; variable
246 if ((state_fd = open(IPSTATE_NAME, O_RDONLY)) == -1) { in main()
487 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in ipfstate_live()
488 ipferror(state_fd, "ioctl(state:SIOCGETFS)"); in ipfstate_live()
491 if (ioctl(state_fd, SIOCGETLG, &state_logging) == -1) { in ipfstate_live()
492 ipferror(state_fd, "ioctl(state:SIOCGETLG)"); in ipfstate_live()
1138 if (ioctl(state_fd, SIOCGTABL, &obj) != 0) { in showstatestats()
1268 showtqtable_live(state_fd); in showstatestats()
1327 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in topipstates()
1434 (void) ioctl(state_fd, SIOCIPFDELTOK, &token_type); in topipstates()
2121 if (ioctl(state_fd, SIOCGENITER, &obj) != 0) in fetchstate()