Home
last modified time | relevance | path

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

12345678910>>...20

/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()
/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.c17 if (listen(sk, 1)) in make_listen()
18 test_error("listen()"); in make_listen()
327 setsockopt_checked(sk, TCP_AO_ADD_KEY, &ao, EINVAL, "add current key on a listen socket"); in test_einval_add_key()
332 setsockopt_checked(sk, TCP_AO_ADD_KEY, &ao, EINVAL, "add rnext key on a listen socket"); in test_einval_add_key()
338 setsockopt_checked(sk, TCP_AO_ADD_KEY, &ao, EINVAL, "add current+rnext key on a listen socket"); in test_einval_add_key()
397 setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, EINVAL, "del and set current key on a listen socket"); in test_einval_del_key()
404 setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, EINVAL, "del and set rnext key on a listen socket"); in test_einval_del_key()
412 …setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, EINVAL, "del and set current+rnext key on a listen so… in test_einval_del_key()
479 setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, EINVAL, "async on non-listen"); in test_einval_del_key()
505 setsockopt_checked(sk, TCP_AO_INFO, &info, EINVAL, "set current key on a listen socket"); in test_einval_ao_info()
[all …]
/linux/drivers/staging/vt6655/
H A Dpower.c68 /* clear always listen beacon */ in PSvEnablePowerSaving()
70 /* first time set listen next beacon */ in PSvEnablePowerSaving()
73 /* always listen beacon */ in PSvEnablePowerSaving()
106 /* set always listen beacon */ in PSvDisablePowerSaving()
137 /* Turn on wake up to listen next beacon */ in PSbIsNextTBTTWakeUp()
H A Dpower.h20 #define PS_FAST_INTERVAL 1 /* Fast power saving listen interval */
21 #define PS_MAX_INTERVAL 4 /* MAX power saving listen interval */
/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.
/linux/drivers/staging/vt6656/
H A Dpower.c64 /* always listen beacon */ in vnt_enable_power_saving()
83 /* set always listen beacon */ in vnt_disable_power_saving()
106 /* Turn on wake up to listen next beacon */ in vnt_next_tbtt_wakeup()
/linux/net/nfc/nci/
H A Dntf.c437 struct activation_params_listen_nfc_dep *listen; in nci_extract_activation_params_nfc_dep() local
452 listen = &ntf->activation_params.listen_nfc_dep; in nci_extract_activation_params_nfc_dep()
453 listen->atr_req_len = min_t(__u8, *data++, in nci_extract_activation_params_nfc_dep()
455 pr_debug("atr_req_len %d\n", listen->atr_req_len); in nci_extract_activation_params_nfc_dep()
456 if (listen->atr_req_len > 0) in nci_extract_activation_params_nfc_dep()
457 memcpy(listen->atr_req, data, listen->atr_req_len); in nci_extract_activation_params_nfc_dep()
567 goto listen; in nci_rf_intf_activated_ntf_packet()
680 listen: in nci_rf_intf_activated_ntf_packet()
681 /* Listen mode */ in nci_rf_intf_activated_ntf_packet()
/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 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 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 Dsk_connect_zero_addr.c37 if (listen(fd1, 0)) { in main()
38 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/gpio/
H A Dgpio-event-mon.c145 "Listen to events on GPIO lines, 0->1 1->0\n" in print_usage()
146 " -n <name> Listen on GPIOs on a named device (must be stated)\n" in print_usage()
150 " -r Listen for rising edges\n" in print_usage()
151 " -f Listen for falling edges\n" in print_usage()
/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 OPEN:"$TMPFILE1",trunc &
518 timeout 10 ip netns exec "$ns3" socat UDP-LISTEN:12345,fork OPEN:"$TMPFILE2",trunc &

12345678910>>...20