| /freebsd/tools/regression/sockets/listen_backlog/ |
| H A D | listen_backlog.c | 39 * 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 D | listen.2 | 32 .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 …]
|
| /freebsd/tools/regression/sockets/accf_data_attach/ |
| H A D | accf_data_attach.c | 50 * 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 D | hast.conf.5 | 58 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 D | rdma_listen.3 | 4 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/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)"); 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/tools/test/net/ |
| H A D | listen.c | 39 #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/lib/libc/gen/ |
| H A D | getpeereid.3 | 56 .Xr listen 2 64 .Xr listen 2 70 .Xr listen 2 . 76 .Xr listen 2 ) 114 .Xr listen 2 128 .Xr listen 2 ,
|
| /freebsd/tests/sys/netinet/ |
| H A D | so_reuseport_lb_test.c | 152 error = listen(sds[0], 1); in ATF_TC_BODY() 153 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", strerror(errno)); in ATF_TC_BODY() 174 error = listen(sds[i], 1); in ATF_TC_BODY() 175 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", in ATF_TC_BODY() 208 error = listen(sds[0], 1); in ATF_TC_BODY() 209 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", strerror(errno)); in ATF_TC_BODY() 230 error = listen(sds[i], 1); in ATF_TC_BODY() 231 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", in ATF_TC_BODY() 351 error = listen(s, 5); in ATF_TC_BODY() 352 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", in ATF_TC_BODY() [all …]
|
| /freebsd/tools/regression/sockets/listenclose/ |
| H A D | listenclose.c | 43 * 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 D | PROTOCOL.mux | 5 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 D | kdc.8 | 95 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 D | shutdown.c | 56 "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 D | auditdistd.conf.5 | 124 # 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/usr.sbin/ctld/ |
| H A D | nvmf.hh | 40 nvmf_portal(struct portal_group *pg, const char *listen, in nvmf_portal() 42 portal(pg, listen, protocol, std::move(ai)) {} in nvmf_portal() 59 nvmf_discovery_portal(struct portal_group *pg, const char *listen, in nvmf_discovery_portal() 61 nvmf_portal(pg, listen, protocol, std::move(ai)) {} in nvmf_discovery_portal()
|
| H A D | ctl.conf.5 | 56 .Dl listen Ar address 57 .\".Dl listen-iser Ar address 63 .Dl listen Ar transport Ar address 259 .It Ic listen Ar address 260 An IPv4 or IPv6 address and port to listen on for incoming connections. 261 .\".It Ic listen-iser Ar address 262 .\"An IPv4 or IPv6 address and port to listen on for incoming connections 290 This host will announce it on discovery stage, but won't listen. 335 .It Ic listen Ar transport Ar address 336 An IPv4 or IPv6 address and port to listen on for incoming connections [all …]
|
| /freebsd/contrib/ntp/sntp/libevent/include/event2/ |
| H A D | listener.h | 69 * 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 D | listener.h | 69 * 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 D | tube.h | 54 * 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/heimdal/lib/roken/ |
| H A D | mini_inetd.c | 71 * 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 D | complete.conf.in | 68 interface listen eth0 69 interface listen ipv6 70 interface listen 203.0.113.0/24 71 interface listen 192.0.2.123
|
| /freebsd/crypto/openssl/crypto/bio/ |
| H A D | bio_sock2.c | 261 * BIO_listen - Creates a listen socket 262 * @sock: the socket to listen with 275 * - BIO_SOCK_V6_ONLY: When creating an IPv6 socket, make it listen only 279 * It's recommended that you set up both an IPv6 and IPv4 listen socket, and 285 * create the IPv6 sockets to only listen for IPv6 connection. 287 * It could be that the first BIO_listen() call will listen to all the IPv6 362 if (socktype != SOCK_DGRAM && listen(sock, MAX_LISTEN) == -1) { in BIO_listen() 364 "calling listen()"); in BIO_listen() 371 * Must do it explicitly after listen() for macOS, still in BIO_listen()
|
| /freebsd/tests/sys/net/ |
| H A D | if_wg.sh | 64 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \ 68 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 \ 207 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \ 211 echo "$pri2" | jexec wgtest2 wg set $wg2 listen-port 12345 \ 284 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \ 324 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \ 328 echo "$pri2" | jexec wgtest1 wg set $wg2 listen-port 12345 \ 380 echo "$pri1" | jexec wgtest1 wg set $wg1 listen-port 12345 \ [all …]
|
| /freebsd/tests/sys/kern/ |
| H A D | listener_wakeup.c | 49 * 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/contrib/wpa/src/p2p/ |
| H A D | p2p.h | 442 * reg_class - Regulatory class for own listen channel 447 * channel - Own listen channel 452 * channel_forced - the listen channel was forced by configuration 580 * max_listen - Maximum listen duration in ms 631 * channels (with potential variation if the Listen channel of the 658 * frames in Listen state may be in another system component in which 704 * start_listen - Start Listen state 706 * @freq: Frequency of the listen channel in MHz 707 * @duration: Duration for the Listen state in milliseconds 711 * This Listen state may not start immediately since the driver may [all …]
|