Lines Matching refs:se_fd

608 	        if (sep->se_fd != -1 && FD_ISSET(sep->se_fd, &readable)) {  in main()
616 if (ioctl(sep->se_fd, FIONBIO, &i) < 0) in main()
618 ctrl = accept(sep->se_fd, (struct sockaddr *)0, in main()
633 if (ioctl(sep->se_fd, FIONBIO, &i) < 0) in main()
648 ctrl = sep->se_fd; in main()
1042 if (sep->se_fd >= 0) { in config()
1044 if (FD_ISSET(sep->se_fd, &allsock)) in config()
1047 if (!FD_ISSET(sep->se_fd, &allsock)) in config()
1076 sep->se_fd = -1; in config()
1082 sep->se_fd = -1; in config()
1089 sep->se_fd = -1; in config()
1124 if (sep->se_reset != 0 && sep->se_fd >= 0) in config()
1131 if (sep->se_fd != -1) in config()
1132 (void) close(sep->se_fd); in config()
1133 sep->se_fd = -1; in config()
1141 if (sep->se_fd != -1) in config()
1142 (void) close(sep->se_fd); in config()
1143 sep->se_fd = -1; in config()
1148 if (sep->se_fd == -1) in config()
1163 if (sep->se_fd >= 0) in config()
1224 if (sep->se_fd != -1) in unregisterrpc()
1225 (void) close(sep->se_fd); in unregisterrpc()
1226 sep->se_fd = -1; in unregisterrpc()
1237 if (sep->se_fd == -1 && !ISMUX(sep)) in retry()
1247 if ((sep->se_fd = socket(sep->se_family, in setup()
1259 turnon(sep->se_fd, SO_DEBUG) < 0) in setup()
1261 if (turnon(sep->se_fd, SO_REUSEADDR) < 0) in setup()
1264 if (turnon(sep->se_fd, SO_PRIVSTATE) < 0) in setup()
1272 (setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, in setup()
1277 if (setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_V6ONLY, in setup()
1290 if (bind(sep->se_fd, (struct sockaddr *)&sep->se_ctrladdr, in setup()
1297 (void) close(sep->se_fd); in setup()
1298 sep->se_fd = -1; in setup()
1324 if (getsockname(sep->se_fd, in setup()
1328 (void) close(sep->se_fd); in setup()
1329 sep->se_fd = -1; in setup()
1353 (void) close(sep->se_fd); in setup()
1354 sep->se_fd = -1; in setup()
1370 listen(sep->se_fd, -1); in setup()
1374 sep->se_server, sep->se_fd); in setup()
1422 if (setsockopt(sep->se_fd, level, opt, in ipsecsetup()
1436 if (setsockopt(sep->se_fd, level, opt, in ipsecsetup()
1456 if (sep->se_fd >= 0) { in close_sep()
1457 if (FD_ISSET(sep->se_fd, &allsock)) in close_sep()
1459 (void) close(sep->se_fd); in close_sep()
1460 sep->se_fd = -1; in close_sep()
1502 sep->se_fd = -1; in enter()
1515 "enabling %s, fd %d", sep->se_service, sep->se_fd); in enable()
1517 if (sep->se_fd < 0) { in enable()
1527 if (FD_ISSET(sep->se_fd, &allsock)) { in enable()
1534 FD_SET(sep->se_fd, &allsock); in enable()
1535 maxsock = MAX(maxsock, sep->se_fd); in enable()
1543 "disabling %s, fd %d", sep->se_service, sep->se_fd); in disable()
1545 if (sep->se_fd < 0) { in disable()
1555 if (!FD_ISSET(sep->se_fd, &allsock)) { in disable()
1566 FD_CLR(sep->se_fd, &allsock); in disable()
1567 if (sep->se_fd == maxsock) in disable()