/freebsd-11-stable/tools/test/net/ |
H A D | Makefile | 3 PROGS= listen connect
|
H A D | listen.c | 42 #define RECV_LIMIT 64 /* When do we move listen to 0? */ 48 err(EX_USAGE, "listen [-p port] [-l limit]\n"); 85 if (listen(srv_sock, limit) < 0) 86 err(EX_OSERR, "Failed to listen with depth of %d\n", limit); 94 listen(srv_sock, 0);
|
/freebsd-11-stable/contrib/unbound/services/ |
H A D | listen_dnsport.h | 2 * services/listen_dnsport.h - listen on port 53 for incoming DNS queries. 57 * Contains list of query-listen sockets. 120 * Getaddrinfo, create socket, bind and listen to zero or more 181 * @param listen: listening structure. 183 void listen_delete(struct listen_dnsport* listen); 194 * @param listen: listening structure. 197 size_t listen_get_mem(struct listen_dnsport* listen); 201 * @param listen: listening structure. 203 void listen_stop_accept(struct listen_dnsport* listen); 207 * @param listen [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_listen.c | 40 static const char *path = "listen"; 46 "Checks errors from listen(2) (PR standards/46150)"); 68 fdc = open("listen", O_RDWR | O_CREAT, 0600); 71 ATF_REQUIRE_ERRNO(ENOTSOCK, listen(fdc, 1) == -1); 77 ATF_REQUIRE(listen(fda, 1) == 0); 84 ATF_REQUIRE_ERRNO(EINVAL, listen(fdb, 1) == -1); 117 if (listen(sd, 5) == -1) { 119 atf_tc_fail("listen failed: %s%s",
|
/freebsd-11-stable/usr.sbin/ctld/ |
H A D | token.l | 69 listen { return LISTEN; } 70 listen-iser { return LISTEN_ISER; }
|
/freebsd-11-stable/tools/regression/iscsi/ |
H A D | ctl.conf | 6 listen 0.0.0.0
|
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/ |
H A D | token.l | 66 listen { DP; return LISTEN; }
|
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | socket_wrapper.h | 74 #ifdef listen 75 #undef listen macro 77 #define listen(s,blog) swrap_listen(s,blog) macro
|
/freebsd-11-stable/sbin/hastd/ |
H A D | token.l | 59 listen { DP; return LISTEN; }
|
/freebsd-11-stable/tools/tools/netrate/tcpreceive/ |
H A D | tcpreceive.c | 106 if (listen(accept_sock, -1) < 0) 107 err(-1, "listen");
|
/freebsd-11-stable/tests/sys/file/ |
H A D | newfileops_on_fork_test.c | 115 if (listen(listen_fd, -1) <0) 116 err(1, "listen");
|
/freebsd-11-stable/tests/sys/netinet/ |
H A D | tcp_user_cookie.c | 84 if (listen(sock, 5) < 0) 85 err(EX_OSERR, "failed to listen on socket");
|
/freebsd-11-stable/tools/regression/netinet/tcpsocktimewait/ |
H A D | tcpsocktimewait.c | 125 * We don't reuse listen sockets between runs. 143 if (listen(listen_fd, -1) < 0) 144 err(-1, "listen"); 191 if (listen(listen_fd, -1) < 0) 192 err(-1, "listen");
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/mib/ |
H A D | tst.tcp.ksh | 93 listen(S, SOMAXCONN) or die "listen() failed: \$!";
|
/freebsd-11-stable/crypto/heimdal/lib/ipc/ |
H A D | ts-http.c | 103 listen(s, 5);
|
/freebsd-11-stable/crypto/openssl/ssl/ |
H A D | dtls1.h | 218 unsigned int listen; member in struct:dtls1_state_st
|
H A D | d1_srvr.c | 170 int listen; local 185 listen = s->d1->listen; 192 s->d1->listen = listen; 359 if (listen && s->state == SSL3_ST_SW_SRVR_HELLO_A) { 361 s->d1->listen = 0;
|
/freebsd-11-stable/tools/regression/netinet/tcpfullwindowrst/ |
H A D | tcpfullwindowrsttest.c | 86 if (listen(s, 1) == -1)
|
/freebsd-11-stable/tools/regression/sockets/listenclose/ |
H A D | listenclose.c | 45 * trigger as a result of performing a close on a listen() socket with as-yet 66 "socket(PF_INET, SOCK_STREAM, 0) for listen socket: %s", 77 errx(-1, "bind(%s, %d) for listen socket: %s", 82 errx(-1, "getsockname() for listen socket: %s", 86 if (listen(listen_sock, -1) < 0) 87 errx(-1, "listen() for listen socket: %s", strerror(errno));
|
/freebsd-11-stable/tools/regression/sockets/shutdown/ |
H A D | shutdown.c | 58 "socket(PF_INET, SOCK_STREAM, 0) for listen socket: %s", 68 errx(-1, "bind(%s, %d) for listen socket: %s", 73 errx(-1, "getsockname() for listen socket: %s", 77 if (listen(listen_sock, -1) < 0) 78 errx(-1, "listen() for listen socket: %s", strerror(errno));
|
/freebsd-11-stable/tools/regression/sockets/unix_close_race/ |
H A D | unix_close_race.c | 95 if (listen(listenfd, 1024) < 0) 96 err(1, "parent: listen error");
|
/freebsd-11-stable/tools/regression/sockets/listen_backlog/ |
H A D | listen_backlog.c | 41 * set by listen() is properly set, can be retrieved using SO_LISTENQLIMIT, 42 * and that it can be updated by later calls to listen(). We also check that 66 * Retrieve the current socket listen queue limit using SO_LISTENQLIMIT. 96 * Create a socket, check the queue limit on creation, perform a listen(), 97 * and make sure that the limit was set as expected by listen(). 129 if (listen(sock, backlog) < 0) { 130 warn("%s: %s: socket_listen: listen(, %d)", testclass, test, 143 warnx("%s: %s: socket_listen: listen backlog is %d not %d", 156 * listen(). Specifically, we expect a queue limit of 0 before listen, an [all...] |
/freebsd-11-stable/tests/sys/audit/ |
H A D | network.c | 335 "listen(2) call"); 346 "listen.*0x%x.*return,success", sockfd); 349 ATF_REQUIRE_EQ(0, listen(sockfd, 1)); 364 "listen(2) call"); 369 snprintf(extregex, sizeof(extregex), "listen.*%s", invalregex); 372 ATF_REQUIRE_EQ(-1, listen(-1, 1)); 395 ATF_REQUIRE_EQ(0, listen(sockfd, 1)); 457 ATF_REQUIRE_EQ(0, listen(sockfd, 1)); 519 ATF_REQUIRE_EQ(0, listen(sockfd, 1)); 578 ATF_REQUIRE_EQ(0, listen(sockf [all...] |
/freebsd-11-stable/contrib/netbsd-tests/kernel/ |
H A D | t_kauth_pr_47598.c | 129 ATF_REQUIRE(listen(s, 16)==0);
|
/freebsd-11-stable/tools/regression/netinet/tcpconnect/ |
H A D | tcpconnect.c | 83 if (listen(listen_sock, -1) == -1) 84 err(-1, "listen"); 114 err(-1, "listen");
|