Home
last modified time | relevance | path

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

12345678910>>...16

/linux/net/ax25/
H A Dax25_iface.c103 struct listen_struct *listen; in ax25_listen_register() local
108 if ((listen = kmalloc(sizeof(*listen), GFP_ATOMIC)) == NULL) in ax25_listen_register()
111 listen->callsign = *callsign; in ax25_listen_register()
112 listen->dev = dev; in ax25_listen_register()
115 listen->next = listen_list; in ax25_listen_register()
116 listen_list = listen; in ax25_listen_register()
126 struct listen_struct *s, *listen; in ax25_listen_release() local
129 listen = listen_list; in ax25_listen_release()
130 if (listen == NULL) { in ax25_listen_release()
135 if (ax25cmp(&listen->callsign, callsign) == 0 && listen->dev == dev) { in ax25_listen_release()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dmigrate_reuseport.c5 * 1. call listen() for 4 server sockets.
7 * 3. call listen() for 1 server socket. (migration target)
13 * 6. call listen() for the second server socket.
17 * 8. call listen() for the last server.
269 err = listen(test_case->servers[i], qlen); in start_servers()
270 if (!ASSERT_OK(err, "listen")) in start_servers()
373 * calling listen() again will bind() the first listener in migrate_dance()
378 * and SOCK_BINDPORT_LOCK is set. Thus, re-listen() will in migrate_dance()
381 err = listen(test_case->servers[1], QLEN); in migrate_dance()
382 if (!ASSERT_OK(err, "listen")) in migrate_dance()
[all …]
H A Dsockopt_inherit.c47 err = listen(fd, 1); in server_thread()
56 err += verify_sockopt(fd, CUSTOM_INHERIT1, "listen", 1); in server_thread()
57 err += verify_sockopt(fd, CUSTOM_INHERIT2, "listen", 1); in server_thread()
58 err += verify_sockopt(fd, CUSTOM_LISTENER, "listen", 1); in server_thread()
H A Dskc_to_unix_sock.c44 err = listen(sockfd, 1); in test_skc_to_unix_sock()
45 if (!ASSERT_OK(err, "listen failed")) in test_skc_to_unix_sock()
H A Dbpf_iter_setsockopt.c129 /* Prepare reuseport listen fds */ in do_bpf_iter_setsockopt()
155 /* Check reuseport listen fds for dctcp */ in do_bpf_iter_setsockopt()
160 /* Check non reuseport listen fd for dctcp */ in do_bpf_iter_setsockopt()
/linux/tools/testing/selftests/net/tcp_ao/
H A Dkey-management.c60 if (listen(sk, 10)) in prepare_lsk()
61 test_error("listen()"); in prepare_lsk()
303 if (listen(sk, 10)) in assert_no_tcp_repair()
304 test_error("listen()"); in assert_no_tcp_repair()
308 test_ok("listen socket, getsockopt(TCP_AO_REPAIR) is restricted"); in assert_no_tcp_repair()
310 test_fail("listen socket, getsockopt(TCP_AO_REPAIR) works"); in assert_no_tcp_repair()
314 test_ok("listen socket, setsockopt(TCP_AO_REPAIR) is restricted"); in assert_no_tcp_repair()
316 test_fail("listen socket, setsockopt(TCP_AO_REPAIR) works"); in assert_no_tcp_repair()
325 try_delete_key("listen socket, delete a key", sk, 200, 200, 0, -1, -1, 0); in check_listen_socket()
326 try_delete_key("listen socket, delete all keys", sk, 100, 100, 0, -1, -1, 0); in check_listen_socket()
[all …]
H A Dsetsockopt-closed.c19 if (listen(sk, 1)) in make_listen()
20 test_error("listen()"); in make_listen()
329 setsockopt_checked(sk, TCP_AO_ADD_KEY, &ao, EINVAL, "add current key on a listen socket"); in test_einval_add_key()
334 setsockopt_checked(sk, TCP_AO_ADD_KEY, &ao, EINVAL, "add rnext key on a listen socket"); in test_einval_add_key()
340 setsockopt_checked(sk, TCP_AO_ADD_KEY, &ao, EINVAL, "add current+rnext key on a listen socket"); in test_einval_add_key()
399 setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, EINVAL, "del and set current key on a listen socket"); in test_einval_del_key()
406 setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, EINVAL, "del and set rnext key on a listen socket"); in test_einval_del_key()
414 …setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, EINVAL, "del and set current+rnext key on a listen so… in test_einval_del_key()
481 setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, EINVAL, "async on non-listen"); in test_einval_del_key()
507 setsockopt_checked(sk, TCP_AO_INFO, &info, EINVAL, "set current key on a listen socket"); in test_einval_ao_info()
[all …]
/linux/tools/testing/selftests/net/mptcp/
H A Ddiag.sh146 __chk_nr "ss -N $ns -Ml '$filter' | grep -c LISTEN" "$expected" "$msg" 0
154 __chk_listen "dport $lport" 0 "listen match for dport $lport"
156 # should return 'our' mptcp listen socket
157 __chk_listen "sport $lport" 1 "listen match for sport $lport"
159 __chk_listen "src inet:0.0.0.0:$lport" 1 "listen match for saddr and sport"
161 __chk_listen "" 1 "all listen sockets"
176 listen_nr=$(ss -N "${ns}" -Ml | grep -c LISTEN)
H A Duserspace_pm.sh538 ip netns exec "$ns2" ./pm_nl_ctl listen 10.0.2.2\
575 ip netns exec "$ns2" ./pm_nl_ctl listen dead:beef:2::2\
614 ip netns exec "$ns2" ./pm_nl_ctl listen 10.0.2.2\
654 ip netns exec "$ns1" ./pm_nl_ctl listen 10.0.2.1\
690 ip netns exec "$ns1" ./pm_nl_ctl listen dead:beef:2::1\
729 ip netns exec "$ns1" ./pm_nl_ctl listen 10.0.2.1\
770 ip netns exec "$ns1" ./pm_nl_ctl listen 10.0.2.1\
869 ip netns exec $ns2 ./pm_nl_ctl listen 10.0.2.2\
/linux/include/xen/interface/io/
H A Dpvcalls.h10 /* "1" means socket, connect, release, bind, listen, accept and poll */
69 } listen; member
107 } listen; member
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dp2p.h51 * @BRCMF_P2P_STATUS_DISCOVER_LISTEN: P2P listen, remaining on channel.
53 * @BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN: extra listen time for af tx.
82 * @my_listen_chan: this peers listen channel.
83 * @peer_listen_chan: remote peers listen channel.
H A Dp2p.c536 * @listen_ms: duration to listen (for state @WL_P2P_DISC_ST_LISTEN only).
846 * brcmf_p2p_find_listen_channel() - find listen channel in ie string.
866 /* listen channel subel length format: */ in brcmf_p2p_find_listen_channel()
873 brcmf_dbg(INFO, "Found my Listen Channel %d\n", listen_channel); in brcmf_p2p_find_listen_channel()
900 /* find my listen channel */ in brcmf_p2p_scan_prep()
923 * brcmf_p2p_discover_listen() - set firmware to discover listen state.
926 * @channel: channel nr for discover listen.
946 bphy_err(drvr, "Previous LISTEN is not completed yet\n"); in brcmf_p2p_discover_listen()
1004 * brcmf_p2p_notify_listen_complete() - p2p listen has completed.
1025 brcmf_dbg(INFO, "Listen DONE, wake up wait_next_af\n"); in brcmf_p2p_notify_listen_complete()
[all …]
/linux/drivers/net/wireless/ath/ath5k/
H A Dani.c377 int listen; in ath5k_hw_ani_get_listen_time() local
385 listen = ath_hw_get_listen_time(common); in ath5k_hw_ani_get_listen_time()
389 return listen; in ath5k_hw_ani_get_listen_time()
467 * receive ("listen" time) and raise or lower immunity accordingly.
478 int listen, ofdm_high, ofdm_low, cck_high, cck_low; in ath5k_ani_calibration() local
480 /* get listen time since last call and add it to the counter because we in ath5k_ani_calibration()
483 listen = ath5k_hw_ani_get_listen_time(ah, as); in ath5k_ani_calibration()
484 as->listen_time += listen; in ath5k_ani_calibration()
497 "listen %d (now %d)", as->listen_time, listen); in ath5k_ani_calibration()
/linux/tools/testing/selftests/net/
H A Dreuseaddr_ports_exhausted.c149 ret = listen(fd[0], 5); in TEST()
150 ASSERT_EQ(0, ret) TH_LOG("failed to listen."); in TEST()
152 ret = listen(fd[1], 5); in TEST()
153 …EXPECT_EQ(-1, ret) TH_LOG("should fail to listen because only one uid reserves the port in TCP_LIS… in TEST()
H A Dstress_reuseport_listen.sh22 # 300 different vips listen on port 443
23 # Each vip:443 sockaddr has 80 LISTEN sock by using SO_REUSEPORT
H A Dreuseaddr_conflict.c76 if (listen(fd, 1) < 0) { in open_port()
77 perror("listen"); in open_port()
94 error(1, errno, "Couldn't open listen socket"); in main()
H A Dstress_reuseport_listen.c87 err = listen(lfds[i], 0); in main()
89 error(1, errno, "listen(lfds[%d])", i); in main()
96 printf("listen %d socks took %lu.%lu\n", nr_lsocks, in main()
H A Dsk_connect_zero_addr.c37 if (listen(fd1, 0)) { in main()
38 error(1, errno, "listen"); in main()
H A Dreuseport_addr_any.c87 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd()
88 error(1, errno, "tcp: failed to listen on receive port"); in build_rcv_fd()
95 if (listen(rcv_fds[i], 10)) in build_rcv_fd()
96 error(1, errno, "dccp: failed to listen on receive port"); in build_rcv_fd()
H A Dsk_bind_sendto_listen.c65 if (listen(fd2, 0)) { in main()
66 error(1, errno, "listen"); in main()
/linux/drivers/net/wireless/ath/wil6210/
H A Dp2p.c152 wil_dbg_misc(wil, "Delaying p2p listen until scan done\n"); in wil_p2p_listen()
216 wil_err(wil, "listen not started\n"); in wil_p2p_cancel_listen()
302 wil_dbg_misc(wil, "Checking delayed p2p listen\n"); in wil_p2p_delayed_listen_work()
360 /* Search or listen on p2p device */ in wil_p2p_stop_radio_operations()
370 /* listen */ in wil_p2p_stop_radio_operations()
/linux/tools/testing/vsock/
H A Dvsock_diag_test.c61 return "LISTEN"; in sock_state_str()
362 if (listen(fd, 1) < 0) { in test_listen_socket_server()
363 perror("listen"); in test_listen_socket_server()
433 .name = "Listen socket",
502 "listen address and the client requires an address to\n" in usage()
510 " --control-port <port> Server port to listen on/connect to\n" in usage()
/linux/tools/testing/selftests/landlock/
H A Dscoped_abstract_unix_test.c150 ASSERT_EQ(0, listen(stream_server, backlog)); in TEST_F()
216 ASSERT_EQ(0, listen(stream_server, backlog)); in TEST_F()
243 /* Waits for the child to listen */ in TEST_F()
431 ASSERT_EQ(0, listen(stream_server_child, backlog)); in TEST_F()
458 ASSERT_EQ(0, listen(stream_server_parent, backlog)); in TEST_F()
561 ASSERT_EQ(0, listen(stream_server, backlog)); in TEST_F()
611 ASSERT_EQ(0, listen(server_socket, backlog)); in TEST_F()
722 /* Waits for parent to listen. */ in TEST_F()
803 ASSERT_EQ(0, listen(stream_pathname_socket, backlog)); in TEST_F()
821 ASSERT_EQ(0, listen(stream_abstract_socket, backlog)); in TEST_F()
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_queue.sh272 timeout 5 ip netns exec "$ns2" socat -u TCP-LISTEN:12345 STDOUT >/dev/null &
286 timeout 5 ip netns exec "$nsrouter" socat -u TCP-LISTEN:12345 STDOUT >/dev/null &
329 timeout 5 ip netns exec "$nsrouter" socat -u TCP-LISTEN:12345 STDOUT >/dev/null &
431 timeout 60 ip netns exec "$ns2" socat -u SCTP-LISTEN:12345 STDOUT > "$TMPFILE1" &
465 timeout 60 ip netns exec "$ns2" socat -u SCTP-LISTEN:12345 STDOUT > "$TMPFILE1" &
515 timeout 10 ip netns exec "$ns2" socat UDP-LISTEN:12345,fork,pf=ipv4 OPEN:"$TMPFILE1",trunc &
518 timeout 10 ip netns exec "$ns3" socat UDP-LISTEN:12345,fork,pf=ipv4 OPEN:"$TMPFILE2",trunc &
/linux/include/net/nfc/
H A Ddigital.h110 * @tg_listen: Put the device in listen mode waiting for data from the peer
112 * @tg_listen_mdaa: If supported, put the device in automatic listen mode with
121 * @tg_listen_md: If supported, put the device in automatic listen mode with

12345678910>>...16