/Zephyr-latest/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-latest/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-latest/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 | 99 char addr_str[BT_ADDR_LE_STR_LEN]; in connected() local 101 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in connected() 104 FAIL("Failed to connect to %s (err %d)\n", addr_str, err); in connected() 107 LOG_DBG("Connected: %s", addr_str); in connected() 117 char addr_str[BT_ADDR_LE_STR_LEN]; in disconnected() local 119 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in disconnected() 121 LOG_DBG("Disconnected: %s (reason 0x%02x)", addr_str, reason); in disconnected() 132 char addr_str[BT_ADDR_LE_STR_LEN]; in security_changed() local 134 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in security_changed() 137 LOG_DBG("Security changed: %s level %u", addr_str, level); in security_changed() [all …]
|
/Zephyr-latest/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-latest/tests/bsim/bluetooth/host/gatt/settings_clear/src/ |
D | server.c | 54 char addr_str[BT_ADDR_LE_STR_LEN]; in disconnected() local 56 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in disconnected() 58 LOG_DBG("Disconnected: %s (reason 0x%02x)", addr_str, reason); in disconnected() 65 char addr_str[BT_ADDR_LE_STR_LEN]; in security_changed() local 67 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in security_changed() 69 TEST_ASSERT(err == 0, "Security update failed: %s level %u err %d", addr_str, level, err); in security_changed() 71 LOG_DBG("Security changed: %s level %u", addr_str, level); in security_changed()
|
D | client.c | 48 char addr_str[BT_ADDR_LE_STR_LEN]; in security_changed() local 50 bt_addr_le_to_str(bt_conn_get_dst(conn), addr_str, sizeof(addr_str)); in security_changed() 52 TEST_ASSERT(err == 0, "Security update failed: %s level %u err %d", addr_str, level, err); in security_changed() 54 LOG_DBG("Security changed: %s level %u", addr_str, level); in security_changed()
|
/Zephyr-latest/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-latest/tests/bsim/bluetooth/host/scan/slow/src/ |
D | dut.c | 23 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 27 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 28 LOG_DBG("Device found: %s (RSSI %d), type %u, AD data len %u", addr_str, rssi, type, in device_found()
|
/Zephyr-latest/samples/net/sockets/echo/src/ |
D | socket_echo.c | 77 char addr_str[32]; in main() local 87 addr_str, sizeof(addr_str)); in main() 88 printf("Connection #%d from %s\n", counter++, addr_str); in main() 116 printf("Connection from %s closed\n", addr_str); in main()
|
/Zephyr-latest/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-latest/tests/bsim/bluetooth/host/adv/long_ad/src/ |
D | scanner.c | 34 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 36 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 38 LOG_DBG("Device found: %s (RSSI %d)", addr_str, rssi); in device_found()
|
/Zephyr-latest/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-latest/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-latest/include/zephyr/net/ |
D | socketutils.h | 24 const char *net_addr_str_find_port(const char *addr_str); 41 int net_getaddrinfo_addr_str(const char *addr_str, const char *def_port,
|
/Zephyr-latest/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-latest/subsys/tracing/ctf/ |
D | ctf_top.c | 374 ctf_net_bounded_string_t addr_str; in sys_trace_socket_bind_enter() local 377 addr_str.buf, sizeof(addr_str.buf)); in sys_trace_socket_bind_enter() 379 ctf_top_socket_bind_enter(sock, addr_str, addrlen, ntohs(net_sin(addr)->sin_port)); in sys_trace_socket_bind_enter() 389 ctf_net_bounded_string_t addr_str; in sys_trace_socket_connect_enter() local 392 addr_str.buf, sizeof(addr_str.buf)); in sys_trace_socket_connect_enter() 394 ctf_top_socket_connect_enter(sock, addr_str, addrlen); in sys_trace_socket_connect_enter() 420 ctf_net_bounded_string_t addr_str = { "unknown" }; in sys_trace_socket_accept_exit() local 426 addr_str.buf, sizeof(addr_str.buf)); in sys_trace_socket_accept_exit() 434 ctf_top_socket_accept_exit(sock, addr_str, addr_len, port, ret); in sys_trace_socket_accept_exit() 440 ctf_net_bounded_string_t addr_str = { "unknown" }; in sys_trace_socket_sendto_enter() local [all …]
|
/Zephyr-latest/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-latest/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-latest/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-latest/samples/bluetooth/peripheral_accept_list/src/ |
D | main.c | 103 char addr_str[BT_ADDR_LE_STR_LEN]; in add_bonded_addr_to_filter_list() local 106 bt_addr_le_to_str(&info->addr, addr_str, sizeof(addr_str)); in add_bonded_addr_to_filter_list() 107 printk("Added %s to advertising accept filter list\n", addr_str); in add_bonded_addr_to_filter_list()
|
/Zephyr-latest/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-latest/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-latest/samples/bluetooth/iso_central/src/ |
D | main.c | 97 char addr_str[BT_ADDR_LE_STR_LEN]; in device_found() local 110 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 111 printk("Device found: %s (RSSI %d)\n", addr_str, rssi); in device_found() 124 printk("Create conn to %s failed (%u)\n", addr_str, err); in device_found()
|