Home
last modified time | relevance | path

Searched refs:lsock (Results 1 – 5 of 5) sorted by relevance

/freebsd/tests/sys/netinet/
H A Dtcp_connect_port_test.c168 int asock, csock, error, i, lsock; in connect_loop() local
180 lsock = socket(domain, SOCK_STREAM, 0); in connect_loop()
181 ATF_REQUIRE_MSG(lsock >= 0, "socket() for listen socket failed: %s", in connect_loop()
183 error = bind(lsock, addr, addr->sa_len); in connect_loop()
185 error = listen(lsock, 1); in connect_loop()
193 error = getsockname(lsock, &su_srvr.saddr, &salen); in connect_loop()
249 asock = accept(lsock, NULL, NULL); in connect_loop()
H A Dip6_v4mapped_test.c222 int csock, error, i, lsock, off = 0; in ATF_TC_BODY() local
232 lsock = socket(PF_INET, SOCK_STREAM, 0); in ATF_TC_BODY()
233 ATF_REQUIRE_MSG(lsock >= 0, "socket() for listen socket failed: %s", in ATF_TC_BODY()
238 error = bind(lsock, &su_srvr.saddr, sizeof(su_srvr.saddr4)); in ATF_TC_BODY()
240 error = listen(lsock, LOOPS + 1); in ATF_TC_BODY()
245 error = getsockname(lsock, &su_srvr.saddr, &salen); in ATF_TC_BODY()
314 ATF_REQUIRE(close(lsock) == 0); in ATF_TC_BODY()
/freebsd/crypto/openssl/test/helpers/
H A Dhandshake.c1307 int lsock = INVALID_SOCKET, asock = INVALID_SOCKET; in create_sctp_socks() local
1326 lsock = BIO_socket(family, SOCK_STREAM, IPPROTO_SCTP, 0); in create_sctp_socks()
1327 if (lsock == INVALID_SOCKET) { in create_sctp_socks()
1334 if (!set_sock_as_sctp(lsock) in create_sctp_socks()
1335 || !BIO_listen(lsock, BIO_ADDRINFO_address(ai), in create_sctp_socks()
1337 BIO_closesocket(lsock); in create_sctp_socks()
1338 lsock = INVALID_SOCKET; in create_sctp_socks()
1346 if (lsock == INVALID_SOCKET) in create_sctp_socks()
1365 asock = BIO_accept_ex(lsock, NULL, BIO_SOCK_NONBLOCK); in create_sctp_socks()
1378 if (lsock != INVALID_SOCKET) in create_sctp_socks()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntp_io.c4555 vsock_t *lsock = emalloc(sizeof(*lsock));
4557 lsock->fd = fd;
4558 lsock->type = type;
4560 LINK_SLIST(fd_list, lsock, link);
4571 vsock_t *lsock;
4573 UNLINK_EXPR_SLIST(lsock, fd_list, fd ==
4576 if (NULL == lsock)
4579 switch (lsock->type) {
4587 closesocket(lsock
4522 vsock_t *lsock = emalloc(sizeof(*lsock)); global() local
4537 vsock_t *lsock; global() local
[all...]
/freebsd/sbin/ipf/ipsend/
H A DMakefile14 LINUX=lsock.o slinux.o larp.o