Lines Matching refs:se_fd

620 	        if (sep->se_fd != -1 && FD_ISSET(sep->se_fd, &readable)) {  in main()
628 if (ioctl(sep->se_fd, FIONBIO, &i) < 0) in main()
630 ctrl = accept(sep->se_fd, (struct sockaddr *)0, in main()
645 if (ioctl(sep->se_fd, FIONBIO, &i) < 0) in main()
660 ctrl = sep->se_fd; in main()
1054 if (sep->se_fd >= 0) { in config()
1056 if (FD_ISSET(sep->se_fd, &allsock)) in config()
1059 if (!FD_ISSET(sep->se_fd, &allsock)) in config()
1088 sep->se_fd = -1; in config()
1094 sep->se_fd = -1; in config()
1101 sep->se_fd = -1; in config()
1136 if (sep->se_reset != 0 && sep->se_fd >= 0) in config()
1143 if (sep->se_fd != -1) in config()
1144 (void) close(sep->se_fd); in config()
1145 sep->se_fd = -1; in config()
1153 if (sep->se_fd != -1) in config()
1154 (void) close(sep->se_fd); in config()
1155 sep->se_fd = -1; in config()
1160 if (sep->se_fd == -1) in config()
1175 if (sep->se_fd >= 0) in config()
1236 if (sep->se_fd != -1) in unregisterrpc()
1237 (void) close(sep->se_fd); in unregisterrpc()
1238 sep->se_fd = -1; in unregisterrpc()
1249 if (sep->se_fd == -1 && !ISMUX(sep)) in retry()
1259 if ((sep->se_fd = socket(sep->se_family, in setup()
1271 turnon(sep->se_fd, SO_DEBUG) < 0) in setup()
1273 if (turnon(sep->se_fd, SO_REUSEADDR) < 0) in setup()
1276 if (turnon(sep->se_fd, SO_PRIVSTATE) < 0) in setup()
1284 (setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, in setup()
1289 if (setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_V6ONLY, in setup()
1302 if (bind(sep->se_fd, (struct sockaddr *)&sep->se_ctrladdr, in setup()
1309 (void) close(sep->se_fd); in setup()
1310 sep->se_fd = -1; in setup()
1336 if (getsockname(sep->se_fd, in setup()
1340 (void) close(sep->se_fd); in setup()
1341 sep->se_fd = -1; in setup()
1365 (void) close(sep->se_fd); in setup()
1366 sep->se_fd = -1; in setup()
1382 listen(sep->se_fd, -1); in setup()
1386 sep->se_server, sep->se_fd); in setup()
1434 if (setsockopt(sep->se_fd, level, opt, in ipsecsetup()
1448 if (setsockopt(sep->se_fd, level, opt, in ipsecsetup()
1468 if (sep->se_fd >= 0) { in close_sep()
1469 if (FD_ISSET(sep->se_fd, &allsock)) in close_sep()
1471 (void) close(sep->se_fd); in close_sep()
1472 sep->se_fd = -1; in close_sep()
1514 sep->se_fd = -1; in enter()
1527 "enabling %s, fd %d", sep->se_service, sep->se_fd); in enable()
1529 if (sep->se_fd < 0) { in enable()
1539 if (FD_ISSET(sep->se_fd, &allsock)) { in enable()
1546 FD_SET(sep->se_fd, &allsock); in enable()
1547 maxsock = MAX(maxsock, sep->se_fd); in enable()
1555 "disabling %s, fd %d", sep->se_service, sep->se_fd); in disable()
1557 if (sep->se_fd < 0) { in disable()
1567 if (!FD_ISSET(sep->se_fd, &allsock)) { in disable()
1578 FD_CLR(sep->se_fd, &allsock); in disable()
1579 if (sep->se_fd == maxsock) in disable()