Home
last modified time | relevance | path

Searched refs:subnet (Results 1 – 25 of 27) sorted by relevance

12

/Zephyr-latest/subsys/bluetooth/mesh/
Dmain.c59 struct bt_mesh_cdb_subnet *subnet = NULL; in bt_mesh_provision() local
81 subnet = bt_mesh_cdb_subnet_get(net_idx); in bt_mesh_provision()
82 if (!subnet) { in bt_mesh_provision()
98 subnet->kr_phase = BT_MESH_KR_PHASE_2; in bt_mesh_provision()
100 subnet->kr_phase = BT_MESH_KR_NORMAL; in bt_mesh_provision()
107 err = bt_mesh_cdb_subnet_key_import(subnet, BT_MESH_KEY_REFRESH(flags) ? 1 : 0, in bt_mesh_provision()
113 bt_mesh_cdb_subnet_store(subnet); in bt_mesh_provision()
Dfriend.c90 return frnd->subnet != NULL; in friend_is_allocated()
121 (!frnd->subnet || frnd->subnet->net_idx != net_idx)) { in bt_mesh_friend_find()
138 &frnd->subnet->keys[idx].net); in friend_cred_create()
174 if (frnd->subnet->keys[i].valid) { in friend_clear()
196 cb->terminated(frnd->subnet->net_idx, frnd->lpn); in friend_clear()
201 frnd->subnet = NULL; in friend_clear()
243 frnd->subnet->net_idx == net_idx) { in bt_mesh_friend_sec_update()
372 struct bt_mesh_subnet *subnet; member
385 .net_idx = frnd->subnet->net_idx, in unseg_app_sdu_unpack()
390 meta->subnet = frnd->subnet; in unseg_app_sdu_unpack()
[all …]
Dheartbeat.c167 struct bt_mesh_subnet *subnet; in hb_publish() local
177 subnet = bt_mesh_subnet_get(pub.net_idx); in hb_publish()
178 if (!subnet) { in hb_publish()
Dsubnet.h96 void (*evt_handler)(struct bt_mesh_subnet *subnet,
DCMakeLists.txt12 subnet.c
Dnet.h71 struct bt_mesh_subnet *subnet; member
Dsubnet.c922 if (!frnd->subnet) { in bt_mesh_net_cred_find()
926 rx->sub = frnd->subnet; in bt_mesh_net_cred_find()
998 BT_MESH_SETTINGS_DEFINE(subnet, "NetKey", net_key_set);
Dnet.c778 struct bt_mesh_subnet *subnet = bt_mesh_subnet_find(find_subnet_cb, &new_net_idx); in bt_mesh_sbr_check_cb() local
780 if (!subnet) { in bt_mesh_sbr_check_cb()
785 ctx->rx->sub = subnet; in bt_mesh_sbr_check_cb()
Drpr_srv.c412 static void subnet_evt_handler(struct bt_mesh_subnet *subnet, in subnet_evt_handler() argument
422 subnet->net_idx == srv.link.cli.net_idx) { in subnet_evt_handler()
430 subnet->net_idx == srv.scan.cli.net_idx) { in subnet_evt_handler()
DKconfig735 requirements, when subnet bridge functionality is enabled on a node,
1365 of the subnet bridge functionality of a node.
1383 node that can configure the subnet bridge functionality of another node.
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dbrg_cfg_cli.rst11 subnet bridge functionality of another Mesh node containing the
Dbrg_cfg.rst40 A subnet is a group of nodes within a mesh network that share a common network key, enabling them to
42 Each subnet operates independently, with nodes exchanging messages exclusively within that group.
51 messages across the subnet groups.
53 The Subnet Bridge node has a primary subnet, based on the primary NetKey, which handles the
Dproxy.rst38 Solicitation UUID, encrypted with the network key of the subnet that the legacy device wants to
Dshell.rst481 Begin Proxy Solicitation of a subnet. Support of this feature can be enabled through the
615 Get or Set of current Node Identity state of a subnet.
880 Get or set the key refresh phase of a subnet.
1818 for configuring the subnet bridge functionality of a mesh node.
1847 * ``NetIdx1``: NetKey index of the first subnet.
1848 * ``NetIdx2``: NetKey index of the second subnet.
1849 * ``Addr1``: Address of the node in the first subnet.
1850 * ``Addr2``: Address of the node in the second subnet.
1857 * ``NetIdx1``: NetKey index of the first subnet.
1858 * ``NetIdx2``: NetKey index of the second subnet.
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dshell.c1233 struct bt_mesh_cdb_subnet *subnet; in cdb_print_subnets() local
1241 subnet = &bt_mesh_cdb.subnets[i]; in cdb_print_subnets()
1242 if (subnet->net_idx == BT_MESH_KEY_UNUSED) { in cdb_print_subnets()
1246 if (bt_mesh_cdb_subnet_key_export(subnet, 0, net_key)) { in cdb_print_subnets()
1248 subnet->net_idx); in cdb_print_subnets()
1254 shell_print(sh, "0x%03x %s", subnet->net_idx, key_hex_str); in cdb_print_subnets()
1630 SHELL_CMD_ARG(subnet-add, NULL, "<NetKeyIdx> [<NetKey(1-16 hex)>]", cmd_cdb_subnet_add, 2,
1632 SHELL_CMD_ARG(subnet-del, NULL, "<NetKeyIdx>", cmd_cdb_subnet_del, 2, 0),
Dcfg.c561 struct bt_mesh_cdb_subnet *subnet; in cmd_net_key_add() local
563 subnet = bt_mesh_cdb_subnet_get(key_net_idx); in cmd_net_key_add()
564 if (subnet) { in cmd_net_key_add()
570 if (bt_mesh_cdb_subnet_key_export(subnet, 0, key_val)) { in cmd_net_key_add()
576 subnet = bt_mesh_cdb_subnet_alloc(key_net_idx); in cmd_net_key_add()
577 if (!subnet) { in cmd_net_key_add()
582 if (bt_mesh_cdb_subnet_key_import(subnet, 0, key_val)) { in cmd_net_key_add()
587 bt_mesh_cdb_subnet_store(subnet); in cmd_net_key_add()
/Zephyr-latest/samples/net/dhcpv4_client/
DREADME.rst48 "subnet": "192.0.2.0/24",
140 "subnet": "192.0.2.0/24",
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_persistence.c432 struct bt_mesh_cdb_subnet *subnet; in provisioner_setup() local
445 subnet = bt_mesh_cdb_subnet_alloc(test_netkey_idx); in provisioner_setup()
446 ASSERT_TRUE(subnet != NULL); in provisioner_setup()
447 err = bt_mesh_cdb_subnet_key_import(subnet, 0, test_netkey); in provisioner_setup()
451 bt_mesh_cdb_subnet_store(subnet); in provisioner_setup()
Dtest_brg.c192 struct bt_mesh_cdb_subnet *subnet = bt_mesh_cdb_subnet_alloc(i + 1); in tester_setup() local
194 ASSERT_TRUE(subnet != NULL); in tester_setup()
196 ASSERT_OK(bt_mesh_cdb_subnet_key_import(subnet, 0, subnet_keys[i])); in tester_setup()
198 bt_mesh_cdb_subnet_store(subnet); in tester_setup()
/Zephyr-latest/doc/connectivity/networking/
Dusbnet_setup.rst45 It make sense to choose addresses in the same subnet we have in Zephyr
/Zephyr-latest/subsys/net/ip/
Dnet_if.c3516 uint32_t subnet; in net_if_ipv4_addr_mask_cmp() local
3531 subnet = UNALIGNED_GET(&addr->s_addr) & in net_if_ipv4_addr_mask_cmp()
3535 ipv4->unicast[i].netmask.s_addr) == subnet) { in net_if_ipv4_addr_mask_cmp()
3652 struct in_addr subnet; in net_if_ipv4_get_best_match() local
3662 subnet.s_addr = ipv4->unicast[i].ipv4.address.in_addr.s_addr & in net_if_ipv4_get_best_match()
3664 len = get_diff_ipv4(dst, &subnet); in net_if_ipv4_get_best_match()
3917 uint32_t subnet; in net_if_ipv4_get_netmask_by_addr() local
3936 subnet = UNALIGNED_GET(&addr->s_addr) & in net_if_ipv4_get_netmask_by_addr()
3940 ipv4->unicast[i].netmask.s_addr) == subnet) { in net_if_ipv4_get_netmask_by_addr()
3957 uint32_t subnet; in net_if_ipv4_set_netmask_by_addr() local
[all …]
DKconfig.ipv6217 address configured using this method is stable within each subnet,
/Zephyr-latest/modules/hostap/
DKconfig378 For L2 roaming, the original AP and new AP are in the same subnet, client
380 For L3 roaming, the original AP and new AP are in different subnet, client
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/
DREADME.rst134 same subnet e.g. 192.0.2.1 and 192.0.2.2.
/Zephyr-latest/samples/net/sockets/echo_client/
DREADME.rst244 …sudo docker network create --ipv6 --subnet fd11:db8:1::/64 -o com.docker.network.bridge.name=otbr0…

12