summaryrefslogtreecommitdiff
path: root/mesh/util.c
Commit message (Collapse)AuthorAgeFilesLines
* mesh: Don't log error for false positive mkdir failureInga Stotland2021-12-061-2/+2
| | | | | When invoking mkdir() for mesh configuration storage, do not report an error if a target directory already exists.
* mesh: Fix unchecked return valueTedd Ho-Jeong An2021-10-181-3/+8
| | | | | This patch fixes the unchecked return value(CWE-252) issues reported by the Coverity.
* mesh: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 48 License: LGPL-2.1-or-later mesh/mesh-mgmt.h mesh/mesh-mgmt.c mesh/net-keys.c mesh/mesh-io-api.h mesh/mesh.h mesh/net-keys.h mesh/model.h mesh/util.h mesh/appkey.c mesh/cfgmod.h mesh/appkey.h mesh/prov.h mesh/prov-acceptor.c mesh/net.c mesh/dbus.h mesh/friend.h mesh/mesh-io-generic.c mesh/main.c mesh/util.c mesh/dbus.c mesh/error.h mesh/mesh-config-json.c mesh/agent.h mesh/pb-adv.c mesh/crypto.c mesh/crypto.h mesh/friend.c mesh/pb-adv.h mesh/provision.h mesh/mesh-config.h mesh/mesh-io-generic.h mesh/agent.c mesh/cfgmod-server.c mesh/mesh-io.h mesh/keyring.h mesh/net.h mesh/keyring.c mesh/mesh-defs.h mesh/mesh.c mesh/rpl.c mesh/manager.c mesh/model.c mesh/mesh-io.c mesh/node.c mesh/prov-initiator.c mesh/rpl.h mesh/node.h mesh/manager.h
* mesh: Helper packet print should depend on debug settingInga Stotland2020-06-011-0/+11
| | | | | This changes the utility function print_packet() to check if daemon is running in debug mode.
* mesh: Relocate tree deletion to util.c/hBrian Gix2020-01-301-0/+25
|
* Include limits.h for PATH_MAXJory Pratt2019-10-211-0/+1
|
* mesh: Manage node config directory in mesh-configInga Stotland2019-07-151-1/+38
| | | | | | | | | | | | | | | | | | | This completely removes storage.c file. Instead, the handling of mesh node configuration storage is done completely in mesh-config layer by calling the following API functions: bool mesh_config_load_nodes(const char *cfg_dir, mesh_config_node_func_t cb, void *user_data) void mesh_config_release(struct mesh_config *cfg) void mesh_config_destroy(struct mesh_config *cfg) bool mesh_config_save(struct mesh_config *cfg, bool no_wait, mesh_config_status_func_t cb, void *user_data) struct mesh_config *mesh_config_create(const char *cfg_path, const uint8_t uuid[16], struct mesh_config_node *node)
* mesh: Remove unnecessary includes from .c filesInga Stotland2019-05-171-5/+1
|
* mesh: Add hex string and debug logging utilitiesInga Stotland2019-01-081-1/+26
| | | | | This adds frequently used functionaility for logging and saving/retrieval of long (128+ bit) hexidecimal data.
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-0/+1
|
* mesh: Source files for mesh access layer and utilitiesInga Stotland2018-08-201-0/+71
| | | | | This adds initial implementation of BT Mesh access layer functionality plus utilities.
* tools: Move meshctl sources under tools/mesh directoryInga Stotland2018-07-061-219/+0
| | | | This is a temporary location until the unified mesh solution is provided
* mesh: Make meshctl use bt_shell helpersLuiz Augusto von Dentz2017-12-081-165/+14
| | | | | This makes meshctl use bt_shell to manage the menus and command handling.
* mesh: Remove circular include protection guardsMarcel Holtmann2017-08-211-0/+1
|
* mesh: Fix includes to use root relative path namesMarcel Holtmann2017-08-211-2/+2
|
* mesh: Baseline Mesh implementationBrian Gix2017-08-211-0/+369