Searched refs:lsock (Results 1 – 6 of 6) sorted by relevance
| /freebsd/tests/sys/netinet/ |
| H A D | tcp_connect_port_test.c | 168 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 D | ip6_v4mapped_test.c | 222 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/cddl/contrib/opensolaris/tests/os-tests/tests/oclo/ |
| H A D | oclo.c | 476 int lsock, csock, asock; in oclo_accept_common() local 491 lsock = socket(PF_INET, ltype, 0); in oclo_accept_common() 492 if (lsock < 0) { in oclo_accept_common() 497 oclo_record(c, lsock, c->clo_flags, "listen"); in oclo_accept_common() 503 if (bind(lsock, (struct sockaddr *)&in, sizeof (in)) != 0) { in oclo_accept_common() 509 if (getsockname(lsock, (struct sockaddr *)&in, &slen) != 0) { in oclo_accept_common() 514 if (listen(lsock, 5) < 0) { in oclo_accept_common() 532 asock = accept4(lsock, NULL, NULL, atype); in oclo_accept_common() 534 asock = accept(lsock, NULL, NULL); in oclo_accept_common()
|
| /freebsd/crypto/openssl/test/helpers/ |
| H A D | handshake.c | 1321 int lsock = INVALID_SOCKET, asock = INVALID_SOCKET; in create_sctp_socks() local 1340 lsock = BIO_socket(family, SOCK_STREAM, IPPROTO_SCTP, 0); in create_sctp_socks() 1341 if (lsock == INVALID_SOCKET) { in create_sctp_socks() 1348 if (!set_sock_as_sctp(lsock) in create_sctp_socks() 1349 || !BIO_listen(lsock, BIO_ADDRINFO_address(ai), in create_sctp_socks() 1351 BIO_closesocket(lsock); in create_sctp_socks() 1352 lsock = INVALID_SOCKET; in create_sctp_socks() 1360 if (lsock == INVALID_SOCKET) in create_sctp_socks() 1379 asock = BIO_accept_ex(lsock, NULL, BIO_SOCK_NONBLOCK); in create_sctp_socks() 1392 if (lsock != INVALID_SOCKET) in create_sctp_socks() [all …]
|
| /freebsd/contrib/ntp/ntpd/ |
| H A D | ntp_io.c | 4553 vsock_t *lsock = emalloc(sizeof(*lsock)); local 4555 lsock->fd = fd; 4556 lsock->type = type; 4558 LINK_SLIST(fd_list, lsock, link); 4569 vsock_t *lsock; local 4571 UNLINK_EXPR_SLIST(lsock, fd_list, fd == 4574 if (NULL == lsock) 4577 switch (lsock->type) { 4585 closesocket(lsock->fd); 4589 closeserial((int)lsock->fd); [all …]
|
| /freebsd/sbin/ipf/ipsend/ |
| H A D | Makefile | 14 LINUX=lsock.o slinux.o larp.o
|