Lines Matching refs:mesh_subnet

65 static void mesh_proxy_start_advertising_with_node_id_for_subnet(mesh_subnet_t * mesh_subnet);
161 static void mesh_proxy_stop_advertising_with_node_id_for_subnet(mesh_subnet_t * mesh_subnet){ in mesh_proxy_stop_advertising_with_node_id_for_subnet() argument
162 if (mesh_subnet->node_id_advertisement_running != 0){ in mesh_proxy_stop_advertising_with_node_id_for_subnet()
163 adv_bearer_advertisements_remove_item(&mesh_subnet->advertisement_with_node_id); in mesh_proxy_stop_advertising_with_node_id_for_subnet()
164 mesh_subnet->node_id_advertisement_running = 0; in mesh_proxy_stop_advertising_with_node_id_for_subnet()
172 mesh_subnet_t * mesh_subnet = mesh_subnet_iterator_get_next(&it); in mesh_proxy_stop_all_advertising_with_node_id() local
173 mesh_proxy_stop_advertising_with_node_id_for_subnet(mesh_subnet); in mesh_proxy_stop_all_advertising_with_node_id()
185 mesh_subnet_t * mesh_subnet = (mesh_subnet_t *) arg; in mesh_proxy_node_id_handle_get_aes128() local
187 (void)memcpy(mesh_subnet->advertisement_with_node_id.adv_data, in mesh_proxy_node_id_handle_get_aes128()
189 (void)memcpy(&mesh_subnet->advertisement_with_node_id.adv_data[12], in mesh_proxy_node_id_handle_get_aes128()
191 (void)memcpy(&mesh_subnet->advertisement_with_node_id.adv_data[20], in mesh_proxy_node_id_handle_get_aes128()
193 mesh_subnet->advertisement_with_node_id.adv_length = 28; in mesh_proxy_node_id_handle_get_aes128()
196 adv_bearer_advertisements_add_item(&mesh_subnet->advertisement_with_node_id); in mesh_proxy_node_id_handle_get_aes128()
205 mesh_subnet->node_id_advertisement_running = 1; in mesh_proxy_node_id_handle_get_aes128()
213 mesh_subnet_t * mesh_subnet = (mesh_subnet_t *) arg; in mesh_proxy_node_id_handle_random() local
221 …s128, mesh_subnet->old_key->identity_key, mesh_proxy_node_id_plaintext, mesh_proxy_node_id_hash, m… in mesh_proxy_node_id_handle_random()
224 static void mesh_proxy_start_advertising_with_node_id_for_subnet(mesh_subnet_t * mesh_subnet){ in mesh_proxy_start_advertising_with_node_id_for_subnet() argument
225 if (mesh_subnet->node_id_advertisement_running) return; in mesh_proxy_start_advertising_with_node_id_for_subnet()
226 log_info("Proxy start advertising with node id, netkey index %04x", mesh_subnet->netkey_index); in mesh_proxy_start_advertising_with_node_id_for_subnet()
228 …dom_value, sizeof(mesh_proxy_node_id_random_value), mesh_proxy_node_id_handle_random, mesh_subnet); in mesh_proxy_start_advertising_with_node_id_for_subnet()
234 mesh_subnet_t * mesh_subnet = mesh_subnet_get_by_netkey_index(netkey_index); in mesh_proxy_get_advertising_with_node_id_status() local
235 if (mesh_subnet == NULL){ in mesh_proxy_get_advertising_with_node_id_status()
241 if (mesh_subnet->node_id_advertisement_running == 0){ in mesh_proxy_get_advertising_with_node_id_status()
254 mesh_subnet_t * mesh_subnet = mesh_subnet_get_by_netkey_index(netkey_index); in mesh_proxy_set_advertising_with_node_id() local
255 if (mesh_subnet == NULL){ in mesh_proxy_set_advertising_with_node_id()
262 mesh_proxy_stop_advertising_with_node_id_for_subnet(mesh_subnet); in mesh_proxy_set_advertising_with_node_id()
265 mesh_proxy_start_advertising_with_node_id_for_subnet(mesh_subnet); in mesh_proxy_set_advertising_with_node_id()