709 Commits

Author SHA1 Message Date
Matthias Ringwald
b084b67c92 test/mesh: use LFSR instead of libc rand() 2020-08-24 16:23:52 +02:00
Matthias Ringwald
b31f07b701 test/mesh: call mock_init, report name of unexpected pdu 2020-08-24 15:50:15 +02:00
Matthias Ringwald
24889c9aa6 test/mesh: disable leak detection for mesh_message_test 2020-08-24 14:07:34 +02:00
Matthias Ringwald
c9fe0d9fb4 test/mesh: disable leak detection for mesh_message_test 2020-08-24 13:57:45 +02:00
Matthias Ringwald
2908c9e636 test/mesh: report gatt packets as sent to avoid memory leak in unit test 2020-08-21 18:22:37 +02:00
Matthias Ringwald
df71a9a479 mesh: fix compile warnings 2020-08-08 19:47:49 +02:00
Matthias Ringwald
17756958b1 mesh: let make test runs all unit tests 2020-08-08 19:47:49 +02:00
Matthias Ringwald
1e116f542a mesh: add all tests to CMake built 2020-08-08 19:47:49 +02:00
Matthias Ringwald
8eed85101f test/mesh: enable address sanitizer in cmake built 2020-08-08 19:47:49 +02:00
Matthias Ringwald
fe43086520 mesh: fix test/mesh Makefile built 2020-08-08 19:47:49 +02:00
Matthias Ringwald
81f6df8b78 mesh: stop health server publishing 2020-08-08 19:47:49 +02:00
Matthias Ringwald
ee4f8c36ef mesh: fix send segmented access message in mesh_pts 2020-08-08 19:47:49 +02:00
Matthias Ringwald
edf7dd0c54 mesh: dont load static app key for transport tests 2020-08-08 19:47:49 +02:00
Matthias Ringwald
03baefcc95 mesh: update pts ui to send network and access messages to test destinations 2020-08-08 19:47:49 +02:00
Matthias Ringwald
3bf6954eed mesh: dump received network pdus in mesh_pts 2020-08-08 19:47:49 +02:00
Matthias Ringwald
f29e499ee2 mesh: use pseudo dst for virtual address in mesh_pts 2020-08-08 19:47:49 +02:00
Matthias Ringwald
6e7785c71c mesh: use mesh_access_send_unacknowledged_pdu to send test network packets 2020-08-08 19:47:49 +02:00
Matthias Ringwald
18d0ae0600 mesh: send invite only in provisioner role if provisioning was started with provisioning_provisioner_start_provisioning 2020-08-08 19:47:49 +02:00
Matthias Ringwald
d76f65e8a1 mesh: select auth method in provisoner role in mesh_pts 2020-08-08 19:47:49 +02:00
Matthias Ringwald
d16ad46bc4 mesh: emit pb-adv link open failed if device does not responds 2020-08-08 19:47:49 +02:00
Matthias Ringwald
e6542936bd mesh: annotate device uuid is not copied in pb_adv_create_link 2020-08-08 19:47:49 +02:00
Matthias Ringwald
4802c66d6b mesh: rework setup and send of upper transport control pdus 2020-08-08 19:47:48 +02:00
Matthias Ringwald
734bae6528 mesh: replace mesh_upper_transport_setup_access_pdu with message builder 2020-08-08 19:47:48 +02:00
Matthias Ringwald
039cbf1d6c mesh: use mesh_upper_transport_pdu_t for all access messages, remove mesh_transport_pdu_t 2020-08-08 19:47:48 +02:00
Matthias Ringwald
2ddfd9e22b mesh: remove mesh_access_pdu_t getters 2020-08-08 19:47:48 +02:00
Matthias Ringwald
43d07e7f35 mesh: allocate network pdu for outgoing unsegmented access message in run function 2020-08-08 19:47:48 +02:00
Matthias Ringwald
e4121a3476 mesh: remove mesh_unsegmented_pdu_t 2020-08-08 19:47:48 +02:00
Matthias Ringwald
a97cf70aa5 mesh: use mesh_upper_transport_pdu for outgoing segmented control 2020-08-08 19:47:48 +02:00
Matthias Ringwald
8ec600ff6d mesh: use mesh_network_pdu/unsegmented_control for unsegmented control 2020-08-08 19:47:48 +02:00
Matthias Ringwald
1b51af657a mesh: use only segments in mesh_upper_transport_pdu_t, use mesh_upper_transport_pdu for unsegmented access 2020-08-08 19:47:48 +02:00
Matthias Ringwald
242605fa4f mesh: use mesh_upper_transport_pdu_t for segmented access message 2020-08-08 19:47:48 +02:00
Matthias Ringwald
5131e19543 mesh: store unsegmented control message in mesh-control-pdu for incoming 2020-08-08 19:47:48 +02:00
Matthias Ringwald
ba660d4251 mesh: remove mesh_transport_pdu_t from lower and upper transport 2020-08-08 19:47:48 +02:00
Matthias Ringwald
b1a7ae8f2c mesh: use mesh_access_pdu_t for outgoing segmented access messages 2020-08-08 19:47:48 +02:00
Matthias Ringwald
7a0b74888e mesh: remove mesh_upper_transport_set_higher_layer_handler, deliver pdu sent via corresponding access/control handlers 2020-08-08 19:47:48 +02:00
Matthias Ringwald
404d2482eb mesh: extend callback params for received access and control pdus 2020-08-08 19:47:48 +02:00
Matthias Ringwald
a4bbc09d8c mesh: mesh_message_pdu -> mesh_segmented_pdu 2020-08-08 19:47:47 +02:00
Matthias Ringwald
d38a76647a mesh: use mesh-unsegmented-pdu for unsegmented pdus instead of mesh-message-pdu 2020-08-08 19:47:47 +02:00
Matthias Ringwald
8facb3ea41 mesh: mesh-unsegmented-incoming -> mesh-unsegemented 2020-08-08 19:47:47 +02:00
Matthias Ringwald
a7f44e8db4 mesh: convert mesh_transport_t into mesh_message in lower transport before sending 2020-08-08 19:47:47 +02:00
Matthias Ringwald
160d2809bd mesh: use new mesh_access_pdu for incoming pdu handling in upper transport 2020-08-08 19:47:47 +02:00
Matthias Ringwald
3d9c3b8e63 mesh: use mesh_unsegmnted_incoming_pdu_t for unsegmented control messages 2020-08-08 19:47:47 +02:00
Matthias Ringwald
1aa2a11e65 mesh: deliver encrypted proxy message with MESH_NETWORK_PDU_ENCRYPTED and remove callback from mesh_network_t 2020-08-08 19:47:47 +02:00
Matthias Ringwald
aaa248aa80 mesh: wrap unsegmented access message into mesh_message_pdu_t before passing to access layer 2020-08-08 19:47:47 +02:00
Matthias Ringwald
e41a4a086c mesh: use mesh_message_t for unsegmented access messages 2020-08-08 19:47:47 +02:00
Matthias Ringwald
1375370385 test/mesh: remove -Wimplicit-fallthrough as it is clang-only 2020-03-11 15:59:51 +01:00
Matthias Ringwald
6fb99087c2 test/mesh: fix cmake build 2020-03-03 18:01:49 +01:00
Matthias Ringwald
ec422a3a49 mesh: fix MESH_SUBEVENT_PROXY_CONNECTED
Event does not have a status field
2020-01-07 22:23:36 +01:00
Matthias Ringwald
497cc6820f test/mesh: more warnings 2020-01-07 09:37:07 +01:00
Milanka Ringwald
d61023b23c mesh: add unit test for elements descriptions iterator, add missing getter for CONFIGURATION_COMPOSITION_DATA event, fix offsets in existing getters 2019-12-12 15:17:14 +01:00