/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | main.c | 67 static struct peer_config peer; variable 78 peer.conn = bt_conn_ref(conn); in connected_cb() 86 if (conn != peer.conn) { in disconnected_cb() 93 bt_conn_unref(peer.conn); in disconnected_cb() 94 peer.conn = NULL; in disconnected_cb() 143 if (dir == BT_AUDIO_DIR_SINK && peer.sink_stream.bap_stream.ep == NULL) { in stream_alloc() 144 return &peer.sink_stream; in stream_alloc() 145 } else if (dir == BT_AUDIO_DIR_SOURCE && peer.source_stream.bap_stream.ep == NULL) { in stream_alloc() 146 return &peer.source_stream; in stream_alloc() 154 if (cap_stream == &peer.source_stream) { in stream_released() [all …]
|
D | cap_acceptor_unicast.c | 359 struct peer_config *peer = arg1; in tx_thread_func() local 360 struct bt_cap_stream *cap_stream = &peer->source_stream; in tx_thread_func() 383 err = bt_cap_stream_send(cap_stream, buf, peer->tx_seq_num); in tx_thread_func() 385 peer->tx_seq_num++; in tx_thread_func() 400 int init_cap_acceptor_unicast(struct peer_config *peer) in init_cap_acceptor_unicast() argument 440 bt_cap_stream_ops_register(&peer->source_stream, &unicast_stream_ops); in init_cap_acceptor_unicast() 441 bt_cap_stream_ops_register(&peer->sink_stream, &unicast_stream_ops); in init_cap_acceptor_unicast() 453 peer, NULL, NULL, tx_thread_prio, 0, K_NO_WAIT); in init_cap_acceptor_unicast()
|
/Zephyr-latest/samples/net/sockets/echo_server/src/ |
D | tunnel.c | 19 struct net_if *peer; member 84 struct sockaddr peer = { 0 }; in init_tunnel() local 98 &peer)) { in init_tunnel() 104 if (IS_ENABLED(CONFIG_NET_IPV6) && peer.sa_family == AF_INET6) { in init_tunnel() 108 &net_sin6(&peer)->sin6_addr); in init_tunnel() 109 ud.peer = iface; in init_tunnel() 112 &net_sin6(&peer)->sin6_addr); in init_tunnel() 115 } else if (IS_ENABLED(CONFIG_NET_IPV4) && peer.sa_family == AF_INET) { in init_tunnel() 119 &net_sin(&peer)->sin_addr); in init_tunnel() 120 ud.peer = iface; in init_tunnel() [all …]
|
/Zephyr-latest/samples/bluetooth/cap_initiator/src/ |
D | cap_initiator_unicast.c | 72 static struct peer_config peer; variable 167 if (stream == &peer.source_stream.bap_stream) { in unicast_stream_released_cb() 168 k_sem_give(&peer.source_stream_sem); in unicast_stream_released_cb() 169 } else if (stream == &peer.sink_stream.bap_stream) { in unicast_stream_released_cb() 170 k_sem_give(&peer.sink_stream_sem); in unicast_stream_released_cb() 239 if (peer.sink_ep == NULL) { in add_remote_sink() 241 peer.sink_ep = ep; in add_remote_sink() 248 if (peer.source_ep == NULL) { in add_remote_source() 250 peer.source_ep = ep; in add_remote_source() 296 bt_cap_stream_ops_register(&peer.sink_stream, &unicast_stream_ops); in discover_sinks() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/dut/src/ |
D | dut.c | 67 static void fake_subscribe(bt_addr_le_t *peer, in fake_subscribe() argument 81 err = bt_gatt_resubscribe(0, peer, &sub_params); in fake_subscribe() 85 static void run_test_iteration(bt_addr_le_t *peer) in run_test_iteration() argument 91 err = bt_testlib_connect(peer, &conn); in run_test_iteration() 97 fake_subscribe(peer, GATT_HANDLE, received_notification); in run_test_iteration() 138 bt_addr_le_t peer = {}; in entrypoint_dut() local 153 err = bt_testlib_scan_find_name(&peer, "peer"); in entrypoint_dut() 158 run_test_iteration(&peer); in entrypoint_dut()
|
/Zephyr-latest/samples/net/sockets/txtime/src/ |
D | main.c | 45 struct sockaddr peer; member 181 msg.msg_name = &data->peer; in tx() 218 static int get_local_ipv6(struct net_if *iface, struct sockaddr *peer, in get_local_ipv6() argument 223 if (peer->sa_family != AF_INET6) { in get_local_ipv6() 227 addr = net_if_ipv6_select_src_addr(iface, &net_sin6(peer)->sin6_addr); in get_local_ipv6() 240 static int get_local_ipv4(struct net_if *iface, struct sockaddr *peer, in get_local_ipv4() argument 245 if (peer->sa_family != AF_INET) { in get_local_ipv4() 249 addr = net_if_ipv4_select_src_addr(iface, &net_sin(peer)->sin_addr); in get_local_ipv4() 262 static int create_socket(struct net_if *iface, struct sockaddr *peer) in create_socket() argument 295 sock = socket(peer->sa_family, SOCK_DGRAM, IPPROTO_UDP); in create_socket() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/eatt_notif/src/ |
D | common.c | 30 uint peer; in device_sync_init() local 33 peer = PERIPHERAL_ID; in device_sync_init() 35 peer = CENTRAL_ID; in device_sync_init() 38 uint dev_nbrs[BACK_CHANNELS] = { peer }; in device_sync_init()
|
/Zephyr-latest/tests/bluetooth/host/conn/src/ |
D | main.c | 55 bt_addr_le_t peer = {.a.val = {0x01}}; in ZTEST() local 70 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in ZTEST() 86 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in ZTEST() 99 bt_addr_le_t peer = {.a.val = {0x01}}; in ZTEST() local 107 .peer = &peer, in ZTEST()
|
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/central/src/ |
D | dut.c | 61 bt_addr_le_t peer = {}; in dut_procedure_connect_short_rpa_timeout() local 72 err = bt_testlib_scan_find_name(&peer, CONFIG_BT_DEVICE_NAME); in dut_procedure_connect_short_rpa_timeout() 79 err = bt_testlib_connect(&peer, &conn); in dut_procedure_connect_short_rpa_timeout() 90 bt_addr_le_t peer = {.type = BT_ADDR_LE_RANDOM, .a = {.val = {1, 2, 3, 4, 5, 6}}}; in dut_procedure_connect_timeout() local 104 err = bt_testlib_connect(&peer, &conn); in dut_procedure_connect_timeout()
|
D | bs_bt_utils.c | 31 void backchannel_init(uint peer) in backchannel_init() argument 34 uint device_numbers[] = {peer}; in backchannel_init()
|
/Zephyr-latest/subsys/net/l2/virtual/ipip/ |
D | ipip.c | 44 struct net_addr peer; member 168 &ctx->peer.in6_addr); in interface_send() 171 ret = net_ipv6_create(tmp, ctx->my6addr, &ctx->peer.in6_addr); in interface_send() 208 &ctx->peer.in_addr); in interface_send() 222 &ctx->peer.in_addr, in interface_send() 277 if (memcmp(&ctx->peer.in_addr, &net_sin(remote_addr)->sin_addr, in verify_remote_addr() 282 if (memcmp(&ctx->peer.in6_addr, &net_sin6(remote_addr)->sin6_addr, in verify_remote_addr() 492 char peer[INET_ADDRSTRLEN]; in interface_set_config() local 495 net_ipaddr_copy(&ctx->peer.in_addr, &config->peer4addr); in interface_set_config() 497 addr_str = net_addr_ntop(AF_INET, &ctx->peer.in_addr, in interface_set_config() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/central/src/ |
D | main.c | 56 bt_addr_le_t peer = {.a.val = {0x01}}; in test_central_connect_timeout_with_timeout() local 70 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_timeout_with_timeout() 117 bt_addr_le_t peer = {.a.val = {0x01}}; in test_central_connect_when_connecting() local 127 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_when_connecting() 135 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_when_connecting() 162 bt_addr_le_t peer = {.type = BT_ADDR_LE_RANDOM, in test_central_connect_to_existing() local 173 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_to_existing() 184 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_to_existing()
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/general/src/ |
D | common.c | 33 uint peer = CENTRAL_ID; in device_sync_init() local 36 peer = PERIPHERAL_ID; in device_sync_init() 39 uint dev_nbrs[BACK_CHANNELS] = {peer}; in device_sync_init()
|
/Zephyr-latest/samples/bluetooth/periodic_adv_conn/src/ |
D | main.c | 77 bt_addr_le_t peer; in response_cb() local 91 bt_addr_le_copy(&peer, &bt_addr_le_none); in response_cb() 92 bt_data_parse(buf, get_address, &peer); in response_cb() 93 if (bt_addr_le_eq(&peer, &bt_addr_le_none)) { in response_cb() 98 bt_addr_le_to_str(&peer, addr_str, sizeof(addr_str)); in response_cb() 101 synced_param.peer = &peer; in response_cb()
|
/Zephyr-latest/samples/net/sockets/dumb_http_server_mt/ |
D | Kconfig | 16 bool "Send large file to peer when queried" 18 If set, then send 100KB file to peer. Default is to send 19 a 2KB file to peer.
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/ecred/dut/src/ |
D | dut.c | 77 bt_addr_le_t peer = {}; in entrypoint_dut() local 87 err = bt_testlib_scan_find_name(&peer, "ecred_peer"); in entrypoint_dut() 91 err = bt_testlib_connect(&peer, &conn); in entrypoint_dut()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/src/ |
D | dut.c | 93 bt_addr_le_t peer = {}; in entrypoint_dut() local 118 err = bt_testlib_scan_find_name(&peer, CONFIG_BT_DEVICE_NAME); in entrypoint_dut() 122 err = bt_testlib_connect(&peer, &conn); in entrypoint_dut()
|
/Zephyr-latest/tests/bluetooth/host/id/mocks/ |
D | conn_expects.c | 12 void expect_single_call_bt_conn_lookup_state_le(uint8_t id, const bt_addr_le_t *peer, in expect_single_call_bt_conn_lookup_state_le() argument 22 zassert_equal_ptr(bt_conn_lookup_state_le_fake.arg1_val, peer, in expect_single_call_bt_conn_lookup_state_le()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/acl_tx_frag/src/ |
D | dut.c | 156 static void test_iteration(bt_addr_le_t *peer) in test_iteration() argument 163 err = bt_testlib_connect(peer, &conn); in test_iteration() 243 bt_addr_le_t peer = {}; in entrypoint_dut() local 263 err = bt_testlib_scan_find_name(&peer, CONFIG_BT_DEVICE_NAME); in entrypoint_dut() 268 test_iteration(&peer); in entrypoint_dut()
|
/Zephyr-latest/subsys/net/lib/capture/ |
D | capture.c | 79 struct sockaddr peer; member 131 info.peer = &ctx->peer; in net_capture_foreach() 286 struct sockaddr peer = { 0 }; in net_capture_setup() local 307 if (!net_ipaddr_parse(peer_addr, strlen(peer_addr), &peer)) { in net_capture_setup() 389 if (peer.sa_family != local.sa_family) { in net_capture_setup() 391 "(%d vs %d)", peer.sa_family, local.sa_family); in net_capture_setup() 411 memcpy(&ctx->peer, &peer, local_addr_len); in net_capture_setup() 414 if (net_sin(&ctx->peer)->sin_port == 0) { in net_capture_setup() 415 net_sin(&ctx->peer)->sin_port = htons(DEFAULT_PORT); in net_capture_setup() 653 &net_sin(&ctx->peer)->sin_addr); in capture_send() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | conn_internal.h | 391 bool bt_conn_exists_le(uint8_t id, const bt_addr_le_t *peer); 394 struct bt_conn *bt_conn_add_le(uint8_t id, const bt_addr_le_t *peer); 412 struct bt_conn *bt_conn_add_br(const bt_addr_t *peer); 415 struct bt_conn *bt_conn_add_sco(const bt_addr_t *peer, int link_type); 424 struct bt_conn *bt_conn_lookup_addr_sco(const bt_addr_t *peer); 427 struct bt_conn *bt_conn_lookup_addr_br(const bt_addr_t *peer); 458 const bt_addr_le_t *peer); 470 struct bt_conn *bt_conn_lookup_state_le(uint8_t id, const bt_addr_le_t *peer,
|
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/legacy/src/ |
D | bs_bt_utils.c | 33 void backchannel_init(uint peer) in backchannel_init() argument 36 uint device_numbers[] = { peer }; in backchannel_init()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | capture.c | 61 get_address_str(info->peer, addr_peer, sizeof(addr_peer)); in capture_cb() 111 const char *remote, *local, *peer; in cmd_net_capture_setup() local 125 peer = argv[arg]; in cmd_net_capture_setup() 126 if (!peer) { in cmd_net_capture_setup() 137 ret = net_capture_setup(remote, local, peer, &capture_dev); in cmd_net_capture_setup()
|
/Zephyr-latest/samples/bluetooth/handsfree_ag/ |
D | Kconfig | 20 The Delay time is used to wait for the peer to start dialing. If the 21 peer does not dial within the timeout period, AG satrt simulating a
|
/Zephyr-latest/tests/bsim/bluetooth/host/scan/slow/ |
D | CMakeLists.txt | 9 # like scanning, setting up a connection, querying the peer for a given 25 src/peer.c
|