/Zephyr-Core-3.6.0/tests/bluetooth/addr/src/ |
D | test_bt_addr_from_str.c | 12 char *addr_str = ""; in ZTEST() local 15 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 20 char *addr_str = "ab:ab:ab:ab:ab"; in ZTEST() local 23 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 28 char *addr_str = "ab:ab:ab:ab::ab"; in ZTEST() local 31 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 36 char *addr_str = "ab:ab:ab:ab:b:ab"; in ZTEST() local 39 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 44 char *addr_str = "ab:ab:ab:ab:ab:ab:"; in ZTEST() local 47 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/subsys/net/lib/utils/ |
D | addr_utils.c | 11 const char *net_addr_str_find_port(const char *addr_str) in net_addr_str_find_port() argument 13 const char *p = strrchr(addr_str, ':'); in net_addr_str_find_port() 20 if (*addr_str != '[') { in net_addr_str_find_port() 33 int net_getaddrinfo_addr_str(const char *addr_str, const char *def_port, in net_getaddrinfo_addr_str() argument 40 if (addr_str == NULL) { in net_getaddrinfo_addr_str() 45 port = net_addr_str_find_port(addr_str); in net_getaddrinfo_addr_str() 50 int host_len = port - addr_str - 1; in net_getaddrinfo_addr_str() 56 strncpy(host, addr_str, host_len + 1); in net_getaddrinfo_addr_str() 58 addr_str = host; in net_getaddrinfo_addr_str() 61 return zsock_getaddrinfo(addr_str, port, hints, res); in net_getaddrinfo_addr_str()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/gatt/ccc_store/src/ |
D | central.c | 101 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 103 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 105 LOG_DBG("Device found: %s (RSSI %d)", addr_str, rssi); in device_found() 115 FAIL("Could not connect to peer: %s (err %d)\n", addr_str, err); in device_found() 122 char addr_str[BT_ADDR_LE_STR_LEN]; in connected() local 125 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in connected() 128 FAIL("Failed to connect to %s (err %d)\n", addr_str, err); in connected() 131 LOG_DBG("Connected: %s", addr_str); in connected() 140 char addr_str[BT_ADDR_LE_STR_LEN]; in disconnected() local 142 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in disconnected() [all …]
|
D | peripheral.c | 109 char addr_str[BT_ADDR_LE_STR_LEN]; in connected() local 111 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in connected() 114 FAIL("Failed to connect to %s (err %d)\n", addr_str, err); in connected() 117 LOG_DBG("Connected: %s", addr_str); in connected() 127 char addr_str[BT_ADDR_LE_STR_LEN]; in disconnected() local 129 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in disconnected() 131 LOG_DBG("Disconnected: %s (reason 0x%02x)", addr_str, reason); in disconnected() 142 char addr_str[BT_ADDR_LE_STR_LEN]; in security_changed() local 144 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in security_changed() 147 LOG_DBG("Security changed: %s level %u", addr_str, level); in security_changed() [all …]
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/security/ccc_update/src/ |
D | central.c | 109 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 111 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 113 LOG_DBG("Device found: %s (RSSI %d)", addr_str, rssi); in device_found() 123 FAIL("Could not connect to peer: %s (err %d)\n", addr_str, err); in device_found() 130 char addr_str[BT_ADDR_LE_STR_LEN]; in connected() local 133 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in connected() 136 FAIL("Failed to connect to %s (err %d)\n", addr_str, err); in connected() 139 LOG_DBG("Connected: %s", addr_str); in connected() 148 char addr_str[BT_ADDR_LE_STR_LEN]; in disconnected() local 150 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in disconnected() [all …]
|
D | peripheral.c | 110 char addr_str[BT_ADDR_LE_STR_LEN]; in connected() local 112 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in connected() 115 FAIL("Failed to connect to %s (err %d)\n", addr_str, err); in connected() 118 LOG_DBG("Connected: %s", addr_str); in connected() 128 char addr_str[BT_ADDR_LE_STR_LEN]; in disconnected() local 130 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in disconnected() 132 LOG_DBG("Disconnected: %s (reason 0x%02x)", addr_str, reason); in disconnected() 143 char addr_str[BT_ADDR_LE_STR_LEN]; in security_changed() local 145 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in security_changed() 148 LOG_DBG("Security changed: %s level %u", addr_str, level); in security_changed() [all …]
|
/Zephyr-Core-3.6.0/scripts/build/ |
D | process_gperf.py | 48 addr_str = match_obj.group(0) 51 addr_str = addr_str[1:-1] 57 if i >= len(addr_str): 60 if addr_str[i] == "\\": 61 if addr_str[i + 1].isdigit(): 63 val_str = addr_str[i + 1:i + 4] 68 addr_vals[ctr] = ord(addr_str[i + 1]) 72 addr_vals[ctr] = ord(addr_str[i])
|
/Zephyr-Core-3.6.0/samples/bluetooth/central/src/ |
D | main.c | 29 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 42 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 43 printk("Device found: %s (RSSI %d)\n", addr_str, rssi); in device_found() 57 printk("Create conn to %s failed (%d)\n", addr_str, err); in device_found()
|
/Zephyr-Core-3.6.0/samples/net/sockets/echo/src/ |
D | socket_echo.c | 76 char addr_str[32]; in main() local 86 addr_str, sizeof(addr_str)); in main() 87 printf("Connection #%d from %s\n", counter++, addr_str); in main() 115 printf("Connection from %s closed\n", addr_str); in main()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/security/id_addr_update/central/src/ |
D | utils.c | 65 char addr_str[BT_ADDR_LE_STR_LEN]; in print_conn_state_transition() local 70 bt_addr_le_to_str(info.le.dst, addr_str, sizeof(addr_str)); in print_conn_state_transition() 71 printk("%s: %s\n", prefix, addr_str); in print_conn_state_transition() 144 char addr_str[BT_ADDR_LE_STR_LEN]; in scan_connect_to_first_result__device_found() local 152 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in scan_connect_to_first_result__device_found() 153 printk("Got scan result, connecting.. dst %s, RSSI %d\n", addr_str, rssi); in scan_connect_to_first_result__device_found()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/adv/resume/src/ |
D | bs_bt_utils.c | 87 char addr_str[BT_ADDR_LE_STR_LEN]; in scan_connect_to_first_result_device_found() local 95 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in scan_connect_to_first_result_device_found() 97 addr_str, rssi); in scan_connect_to_first_result_device_found() 131 char addr_str[BT_ADDR_LE_STR_LEN]; in scan_expect_same_address_device_found() local 143 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in scan_expect_same_address_device_found() 146 expected_addr_str, addr_str); in scan_expect_same_address_device_found()
|
/Zephyr-Core-3.6.0/samples/net/sockets/dumb_http_server/src/ |
D | socket_dumb_http.c | 81 char addr_str[32]; in main() local 95 addr_str, sizeof(addr_str)); in main() 96 printf("Connection #%d from %s\n", counter++, addr_str); in main() 148 printf("Connection from %s closed\n", addr_str); in main()
|
/Zephyr-Core-3.6.0/include/zephyr/net/ |
D | socketutils.h | 19 const char *net_addr_str_find_port(const char *addr_str); 36 int net_getaddrinfo_addr_str(const char *addr_str, const char *def_port,
|
/Zephyr-Core-3.6.0/samples/subsys/modbus/tcp_gateway/src/ |
D | main.c | 128 char addr_str[INET_ADDRSTRLEN]; in main() local 141 addr_str, sizeof(addr_str)); in main() 143 counter++, addr_str); in main() 151 addr_str, rc); in main()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/adv/encrypted/css_sample_data/src/ |
D | central.c | 74 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 76 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 78 LOG_DBG("Device found: %s (RSSI %d)", addr_str, rssi); in device_found()
|
/Zephyr-Core-3.6.0/samples/bluetooth/observer/src/ |
D | observer.c | 17 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 19 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 21 addr_str, rssi, type, ad->len); in device_found()
|
/Zephyr-Core-3.6.0/samples/bluetooth/peripheral_accept_list/src/ |
D | main.c | 101 char addr_str[BT_ADDR_LE_STR_LEN]; in add_bonded_addr_to_filter_list() local 104 bt_addr_le_to_str(&info->addr, addr_str, sizeof(addr_str)); in add_bonded_addr_to_filter_list() 105 printk("Added %s to advertising accept filter list\n", addr_str); in add_bonded_addr_to_filter_list()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/gatt/sc_indicate/src/ |
D | bs_bt_utils.c | 86 char addr_str[BT_ADDR_LE_STR_LEN]; in stop_scan_and_connect() local 93 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in stop_scan_and_connect() 94 printk("Got scan result, connecting.. dst %s, RSSI %d\n", addr_str, rssi); in stop_scan_and_connect()
|
/Zephyr-Core-3.6.0/samples/net/sockets/txtime/src/ |
D | main.c | 293 char addr_str[INET6_ADDRSTRLEN]; in create_socket() local 309 addr_str, sizeof(addr_str)); in create_socket() 318 addr_str, sizeof(addr_str)); in create_socket() 324 LOG_DBG("Binding to %s", addr_str); in create_socket() 351 static int get_peer_address(struct net_if **iface, char *addr_str, in get_peer_address() argument 374 &net_sin6(&peer_data.peer)->sin6_addr, addr_str, in get_peer_address() 384 &net_sin(&peer_data.peer)->sin_addr, addr_str, in get_peer_address() 525 char addr_str[INET6_ADDRSTRLEN]; in main() local 561 ret = get_peer_address(&iface, addr_str, sizeof(addr_str)); in main() 612 addr_str, in main()
|
/Zephyr-Core-3.6.0/samples/bluetooth/central_iso/src/ |
D | main.c | 85 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 98 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 99 printk("Device found: %s (RSSI %d)\n", addr_str, rssi); in device_found() 113 printk("Create conn to %s failed (%u)\n", addr_str, err); in device_found()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/security/security_changed_callback/src/ |
D | bs_bt_utils.c | 137 char addr_str[BT_ADDR_LE_STR_LEN]; in stop_scan_and_connect() local 144 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in stop_scan_and_connect() 145 printk("Got scan result, connecting.. dst %s, RSSI %d\n", addr_str, rssi); in stop_scan_and_connect()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/security/bond_overwrite_allowed/src/ |
D | bs_bt_utils.c | 112 char addr_str[BT_ADDR_LE_STR_LEN]; in scan_connect_to_first_result__device_found() local 124 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in scan_connect_to_first_result__device_found() 125 printk("Got scan result, connecting.. dst %s, RSSI %d\n", addr_str, rssi); in scan_connect_to_first_result__device_found()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/security/bond_overwrite_denied/src/ |
D | bs_bt_utils.c | 112 char addr_str[BT_ADDR_LE_STR_LEN]; in scan_connect_to_first_result__device_found() local 124 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in scan_connect_to_first_result__device_found() 125 printk("Got scan result, connecting.. dst %s, RSSI %d\n", addr_str, rssi); in scan_connect_to_first_result__device_found()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/privacy/device/src/ |
D | test_undirected_central.c | 155 char addr_str[BT_ADDR_LE_STR_LEN]; in scan_recv() local 162 bt_addr_le_to_str(info->addr, addr_str, sizeof(addr_str)); in scan_recv() 163 LOG_INF("Device found: %s (RSSI %d)", addr_str, info->rssi); in scan_recv() 200 LOG_DBG("Create conn to %s failed (%u)", addr_str, err); in scan_recv()
|
/Zephyr-Core-3.6.0/samples/bluetooth/mtu_update/central/src/ |
D | central_mtu_update.c | 117 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 130 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 131 printk("Device found: %s (RSSI %d)\n", addr_str, rssi); in device_found() 145 printk("Create conn to %s failed (%u)\n", addr_str, err); in device_found()
|