Home
last modified time | relevance | path

Searched full:listen (Results 1 – 25 of 744) sorted by relevance

12345678910>>...30

/freebsd/tools/regression/sockets/listen_backlog/
H A Dlisten_backlog.c39 * set by listen() is properly set, can be retrieved using SO_LISTENQLIMIT,
40 * and that it can be updated by later calls to listen(). We also check that
64 * Retrieve the current socket listen queue limit using SO_LISTENQLIMIT.
94 * Create a socket, check the queue limit on creation, perform a listen(),
95 * and make sure that the limit was set as expected by listen().
127 if (listen(sock, backlog) < 0) { in socket_listen()
128 warn("%s: %s: socket_listen: listen(, %d)", testclass, test, in socket_listen()
141 warnx("%s: %s: socket_listen: listen backlog is %d not %d", in socket_listen()
154 * listen(). Specifically, we expect a queue limit of 0 before listen, and
155 * then various settings for after listen(). If the passed backlog was
[all …]
/freebsd/lib/libsys/
H A Dlisten.232 .Nm listen
33 .Nd listen for connections on a socket
39 .Fn listen "int s" "int backlog"
46 .Fn listen ,
51 .Fn listen
66 .Fn listen
111 If the listen queue overflows, the kernel will emit a syslog message
139 This secondary queue, like the primary listen queue, is sized
144 .Rv -std listen
147 .Fn listen
[all …]
H A Daccept.252 .Xr listen 2 .
194 .Xr listen 2
206 on the listen queue.
223 .Xr listen 2 ,
/freebsd/tools/regression/sockets/accf_data_attach/
H A Daccf_data_attach.c50 * listen state.
53 * - That we can attach an accept filter to a socket that is in the listen
130 * Step 4: Setsockopt() before listen(). Should fail, since it's not in main()
131 * yet a listen() socket. in main()
137 errx(-1, "not ok 5 - setsockopt() before listen() succeeded"); in main()
141 * Step 5: Getsockopt() after pre-listen() setsockopt(). Should in main()
147 errx(-1, "not ok 6 - getsockopt() after pre-listen() setsockopt() " in main()
150 errx(-1, "not ok 6 - pre-listen() getsockopt() failed with %d (%s)", in main()
155 * Step 6: listen(). in main()
157 if (listen(lso, -1) < 0) in main()
[all …]
/freebsd/sbin/hastd/
H A Dhast.conf.558 listen <addr>
70 listen <addr>
77 listen <addr>
119 .Ic listen
123 .Ic listen
162 .It Ic listen Aq addr
164 Address to listen on in form of:
169 Each of the following examples defines the same listen address:
179 Multiple listen addresses can be specified.
359 .Ic listen
[all …]
/freebsd/contrib/ofed/librdmacm/man/
H A Drdma_listen.34 rdma_listen \- Listen for incoming connection requests.
17 Initiates a listen for incoming connection requests or datagram service
18 lookup. The listen will be restricted to the locally bound source
26 bound to a specific IP address, the listen will be restricted to that
28 to an RDMA port number only, the listen will occur across all RDMA
/freebsd/tools/test/net/
H A Dlisten.c39 #define LISTEN 5 /* Default backlog */ macro
40 #define RECV_LIMIT 64 /* When do we move listen to 0? */
46 err(EX_USAGE, "listen [-p port] [-l limit]\n"); in usage()
54 int limit = LISTEN; in main()
83 if (listen(srv_sock, limit) < 0) in main()
84 err(EX_OSERR, "Failed to listen with depth of %d\n", limit); in main()
92 listen(srv_sock, 0); in main()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_listen.c40 static const char *path = "listen";
46 "Checks errors from listen(2) (PR standards/46150)"); in ATF_TC_HEAD()
68 fdc = open("listen", O_RDWR | O_CREAT, 0600); in ATF_TC_BODY()
71 ATF_REQUIRE_ERRNO(ENOTSOCK, listen(fdc, 1) == -1); in ATF_TC_BODY()
77 ATF_REQUIRE(listen(fda, 1) == 0); in ATF_TC_BODY()
84 ATF_REQUIRE_ERRNO(EINVAL, listen(fdb, 1) == -1); in ATF_TC_BODY()
117 if (listen(sd, 5) == -1) { in ATF_TC_BODY()
119 atf_tc_fail("listen failed: %s%s", in ATF_TC_BODY()
/freebsd/lib/libc/gen/
H A Dgetpeereid.356 .Xr listen 2
64 .Xr listen 2
70 .Xr listen 2 .
76 .Xr listen 2 )
114 .Xr listen 2
128 .Xr listen 2 ,
/freebsd/tools/regression/sockets/listenclose/
H A Dlistenclose.c43 * trigger as a result of performing a close on a listen() socket with as-yet
64 "socket(PF_INET, SOCK_STREAM, 0) for listen socket: %s", in main()
75 errx(-1, "bind(%s, %d) for listen socket: %s", in main()
80 errx(-1, "getsockname() for listen socket: %s", in main()
84 if (listen(listen_sock, -1) < 0) in main()
85 errx(-1, "listen() for listen socket: %s", strerror(errno)); in main()
/freebsd/crypto/openssh/
H A DPROTOCOL.mux5 master. This will cause ssh(1) to listen on a Unix domain socket for
167 string listen host
168 uint32 listen port
174 If listen port is (unsigned int) -2, then the listen host is treated as
183 For dynamically allocated listen port the server replies with
187 uint32 allocated remote listen port
196 string listen host
197 uint32 listen port
/freebsd/crypto/heimdal/kdc/
H A Dkdc.895 Makes the kdc listen on port 80 and handle requests encapsulated in HTTP.
115 Specifies the set of ports the KDC should listen on.
119 The list of addresses to listen for requests on.
120 By default, the kdc will listen on all the locally configured
213 will have to be restarted to listen to them.
214 The reason it doesn't just listen to wildcarded (like INADDR_ANY)
219 addresses, the best option is probably to listen to a wildcarded TCP
221 For instance, this will listen to IPv4 TCP port 88 only:
/freebsd/tools/regression/sockets/shutdown/
H A Dshutdown.c56 "socket(PF_INET, SOCK_STREAM, 0) for listen socket: %s", in main()
66 errx(-1, "bind(%s, %d) for listen socket: %s", in main()
71 errx(-1, "getsockname() for listen socket: %s", in main()
75 if (listen(listen_sock, -1) < 0) in main()
76 errx(-1, "listen() for listen socket: %s", strerror(errno)); in main()
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dauditdistd.conf.5124 # Address to listen on. Multiple listen addresses may be specified.
204 .Ic listen
269 .Ic listen
278 .It Ic listen Aq addr
280 Address to listen on in form of:
285 Each of the following examples defines the same listen address:
295 Multiple listen addresses can be specified.
/freebsd/tests/sys/netinet/
H A Dso_reuseport_lb_test.c146 error = listen(sds[0], 1); in ATF_TC_BODY()
147 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", strerror(errno)); in ATF_TC_BODY()
168 error = listen(sds[i], 1); in ATF_TC_BODY()
169 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", in ATF_TC_BODY()
202 error = listen(sds[0], 1); in ATF_TC_BODY()
203 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", strerror(errno)); in ATF_TC_BODY()
224 error = listen(sds[i], 1); in ATF_TC_BODY()
225 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", in ATF_TC_BODY()
/freebsd/contrib/ntp/sntp/libevent/include/event2/
H A Dlistener.h69 * this socket is closed and when we can listen again on the same port. */
114 Allocate a new evconnlistener object to listen for incoming TCP connections
123 @param backlog Passed to the listen() call to determine the length of the
126 @param fd The file descriptor to listen on. It must be a nonblocking
135 Allocate a new evconnlistener object to listen for incoming TCP connections
144 @param backlog Passed to the listen() call to determine the length of the
146 @param addr The address to listen for connections on.
/freebsd/contrib/libevent/include/event2/
H A Dlistener.h69 * this socket is closed and when we can listen again on the same port. */
114 Allocate a new evconnlistener object to listen for incoming TCP connections
123 @param backlog Passed to the listen() call to determine the length of the
126 @param fd The file descriptor to listen on. It must be a nonblocking
135 Allocate a new evconnlistener object to listen for incoming TCP connections
144 @param backlog Passed to the listen() call to determine the length of the
146 @param addr The address to listen for connections on.
/freebsd/contrib/unbound/util/
H A Dtube.h54 * Callback from pipe listen function
70 /** listen commpoint */
72 /** listen callback */
74 /** listen callback user arg */
94 /** listen callback */
96 /** listen callback user arg */
226 * @param tube: tube to listen on
236 * Remove bg listen setup from event base.
/freebsd/crypto/openssl/crypto/bio/
H A Dbio_sock2.c197 * BIO_listen - Creates a listen socket
198 * @sock: the socket to listen with
211 * - BIO_SOCK_V6_ONLY: When creating an IPv6 socket, make it listen only
214 * It's recommended that you set up both an IPv6 and IPv4 listen socket, and
220 * create the IPv6 sockets to only listen for IPv6 connection.
222 * It could be that the first BIO_listen() call will listen to all the IPv6
297 if (socktype != SOCK_DGRAM && listen(sock, MAX_LISTEN) == -1) { in BIO_listen()
299 "calling listen()"); in BIO_listen()
/freebsd/tests/sys/net/
H A Dif_wg.sh65 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \
69 echo "$pri2" | jexec wgtest2 wg set $wg2 listen-port 12345 \
132 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \
136 echo "$pri2" | jexec wgtest2 wg set $wg2 listen-port 12345 \
210 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \
252 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \
256 echo "$pri2" | jexec wgtest1 wg set $wg2 listen-port 12345 \
309 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \
312 echo "$pri2" | jexec wgtest2 wg set $wg2 listen-port 12346 \
/freebsd/crypto/heimdal/lib/roken/
H A Dmini_inetd.c71 * Listen on a specified addresses
83 * @param[in] ai Addresses to listen on
121 if (rk_IS_SOCKET_ERROR(listen (fds[i], SOMAXCONN))) { in mini_inetd_addrinfo()
122 warn ("listen af = %d", a->ai_family); in mini_inetd_addrinfo()
159 * Listen on a specified port
170 * @param[in] port Port to listen on
/freebsd/contrib/ntp/ntpd/
H A Dcomplete.conf.in68 interface listen eth0
69 interface listen ipv6
70 interface listen 203.0.113.0/24
71 interface listen 192.0.2.123
/freebsd/tests/sys/kern/
H A Dlistener_wakeup.c49 * This test runs several scenarios when sleep(9) on a listen(2)ing socket is
108 ATF_REQUIRE(listen(s, -1) == 0); in tcp_listen()
119 .sun_path = "listen-shutdown-test.sock", in unix_listen()
126 ATF_REQUIRE(listen(s, -1) == 0); in unix_listen()
133 int (*listen)(void); member
237 ctx.s = pr->listen(); in run_tests()
/freebsd/usr.sbin/ctld/
H A Dctl.conf.556 .Dl listen Ar address
57 .\".Dl listen-iser Ar address
219 .It Ic listen Ar address
220 An IPv4 or IPv6 address and port to listen on for incoming connections.
221 .\".It Ic listen-iser Ar address
222 .\"An IPv4 or IPv6 address and port to listen on for incoming connections
250 This host will announce it on discovery stage, but won't listen.
537 listen = [
/freebsd/tools/regression/netinet/tcpsocktimewait/
H A Dtcpsocktimewait.c123 * We don't reuse listen sockets between runs. in main()
141 if (listen(listen_fd, -1) < 0) in main()
142 err(-1, "listen"); in main()
189 if (listen(listen_fd, -1) < 0) in main()
190 err(-1, "listen"); in main()

12345678910>>...30