2062 Commits

Author SHA1 Message Date
Milanka Ringwald
82ed29d491 mesh: responsability for transaction id control moved to client code 2019-07-20 08:50:33 +02:00
Milanka Ringwald
f346d6e034 mesh: health server health_fault_get_handler implementation 2019-07-20 08:50:33 +02:00
Matthias Ringwald
9ca0fe87d6 mesh: implement mesh_access_acknowledged_run 2019-07-20 08:50:33 +02:00
Matthias Ringwald
f8023fbe2c mesh: use 'acknowledged message..' term 2019-07-20 08:50:33 +02:00
Matthias Ringwald
139df7718e mesh: remove outgoing message if message with expected opcode from dest is received 2019-07-20 08:50:32 +02:00
Matthias Ringwald
b551f24da1 mesh: add fields for acknowledged access messages, register for transport sent 2019-07-20 08:50:32 +02:00
Matthias Ringwald
bc0f9682e0 mesh: introduce mesh_access_send_unacknowledged_pdu and mesh_access_send_acknowledged_pdu 2019-07-20 08:50:32 +02:00
Matthias Ringwald
600d87833a mesh: mesh_transport_init -> mesh_upper_transport_init 2019-07-20 08:50:32 +02:00
Matthias Ringwald
b98d42d698 mesh: deliver messages addressed to ALL_X group addresses 2019-07-20 08:50:32 +02:00
Matthias Ringwald
93bb2d2c93 mesh: reset sequence numbers on transition from iv update active to normal 2019-07-20 08:50:32 +02:00
Matthias Ringwald
c520adb916 mesh: validate iv index + active flag in secure network beacon before processing 2019-07-20 08:50:32 +02:00
Matthias Ringwald
5d8695d635 mesh: transition norml -> iv update active -> normal via secure network beacons 2019-07-20 08:50:32 +02:00
Matthias Ringwald
39cb0081ea mesh: remove transition code from generic client 2019-07-20 08:50:32 +02:00
Matthias Ringwald
8907eb9d57 mesh: add mesh_generic_x_publish_value convenience functions that sends set unacknowledged message to publication address 2019-07-20 08:50:32 +02:00
Matthias Ringwald
0fd43b5dcd mesh: remove unused code and prototypes 2019-07-20 08:50:32 +02:00
Matthias Ringwald
bcfc308d7d mesh: use in16_t for generic level 2019-07-20 08:50:32 +02:00
Matthias Ringwald
d42a4bd47f mesh: fix mesh_transport_key_iterator_init 2019-07-20 08:50:32 +02:00
Matthias Ringwald
dc9cb285dc mesh: delete old app keys on key refresh phase 3 2019-07-20 08:50:32 +02:00
Matthias Ringwald
b8e8e52c28 mesh: extract mesh_access_key_refresh_revoke_keys(subnet) 2019-07-20 08:50:32 +02:00
Matthias Ringwald
48cef04012 mesh: increase version in netkey update 2019-07-20 08:50:32 +02:00
Matthias Ringwald
8b7bf63915 mesh: init version on app key add and increase on app key update 2019-07-20 08:50:32 +02:00
Matthias Ringwald
d438275376 mesh: split config_appkey_add_or_udpate_aid into config_appkey_add_aid and config_appkey_update_aid 2019-07-20 08:50:32 +02:00
Matthias Ringwald
7e0d4039ec mesh: pass mesh_transport_key_t to mesh_store_app_key 2019-07-20 08:50:32 +02:00
Matthias Ringwald
82eb991862 mesh: add version field to transport keys 2019-07-20 08:50:32 +02:00
Matthias Ringwald
df8235ad2f mesh: move mesh_key_refresh_state_t and mesh_secure_network_beacon_state_t to mesh_subnet_t 2019-07-20 08:50:32 +02:00
Matthias Ringwald
84339629f0 mesh: A NetKey shall not be deleted from the NetKey List using a message secured with this NetKey 2019-07-20 08:50:32 +02:00
Matthias Ringwald
2951b4690d mesh: trigger key refresh transitions via secure network beacons 2019-07-20 08:50:32 +02:00
Matthias Ringwald
7bddfece57 mesh: revoke old netkey on entering key refresh phase 3 2019-07-20 08:50:32 +02:00
Matthias Ringwald
85f6c8a0c0 mesh: use mesh_subnet_setup_for_netkey_index only on start and for tests 2019-07-20 08:50:32 +02:00
Matthias Ringwald
0647177ff5 mesh: update subnet directly in netkey update handler 2019-07-20 08:50:32 +02:00
Matthias Ringwald
c375509f50 mesh: create subnet directly in netkey add handler 2019-07-20 08:50:32 +02:00
Matthias Ringwald
0f0f44ede9 mesh: delete subnet on netkey delete in config server / remove from mesh_subnet_update_for_netkey_index helper 2019-07-20 08:50:32 +02:00
Matthias Ringwald
bdf219b229 mesh: use key from mesh_subnet_get_outgoing_network_key for beacon rx/tx, network tx, advertising with network id 2019-07-20 08:50:32 +02:00
Matthias Ringwald
2b7de14bb0 mesh: move advertisement_with_network_id from mesh_network_key_t to mesh_subnet_t 2019-07-20 08:50:32 +02:00
Matthias Ringwald
e378fa650f mesh: move node_id_advertisement_running from mesh_network_key_t to mesh_subnet_ta 2019-07-20 08:50:32 +02:00
Matthias Ringwald
2fa98d7e52 mesh: move key refresh and secure beacon data from mesh_network_key_t to mesh_subnet_t 2019-07-20 08:50:32 +02:00
Matthias Ringwald
d0d5f831a5 mesh: update subnet on network key update and delete 2019-07-20 08:50:32 +02:00
Matthias Ringwald
a2484a8470 mesh: update subnet based on network keys 2019-07-20 08:50:32 +02:00
Matthias Ringwald
ac7c0c0957 mesh: don't store primary network key in provisioning data 2019-07-20 08:50:32 +02:00
Matthias Ringwald
de7d11c030 mesh: dd mesh_subnet_iterator, add mesh_subnet_for_netkey_index 2019-07-20 08:50:32 +02:00
Matthias Ringwald
01122b73ee mesh: add mesh_subnet_t 2019-07-20 08:50:32 +02:00
Milanka Ringwald
e3e31eb0c9 mesh: generic level client code 2019-07-20 08:50:32 +02:00
Matthias Ringwald
49006b93a8 mesh: persist network key on add, delete from storage on delete 2019-07-20 08:50:32 +02:00
Matthias Ringwald
ca586e9e01 mesh: fix compile warnings in mesh_proxy.c 2019-07-20 08:50:32 +02:00
Matthias Ringwald
b0a92bc4f6 mesh: bump mesh network key version if key with same netkey index already exists 2019-07-20 08:50:32 +02:00
Matthias Ringwald
c82bae6612 mesh: add version field to mesh_network_key_t 2019-07-20 08:50:32 +02:00
Milanka Ringwald
d5b798e5cb mesh: set publish model and publish function 2019-07-20 08:50:32 +02:00
Milanka Ringwald
9aa5ff1ae8 mesh: extract publish function from existing status message code 2019-07-20 08:50:32 +02:00
Milanka Ringwald
4d81908018 mesh: call mesh_access_state_changed on change 2019-07-20 08:50:32 +02:00
Matthias Ringwald
6aeeab2de1 mesh: restart publication on config server messages 2019-07-20 08:50:32 +02:00