Commit graph

33 commits

Author SHA1 Message Date
Amin Ben Ramdhane
65939b90aa bbf: add a header file for libbbf_api 2021-12-20 15:43:08 +00:00
vdutta
c364c99501 Stage var state uci 2021-11-09 17:21:37 +01:00
Omar Kallel
c7c87df049 Ticket #6359: icwmp: Reduce I/O on filesystem 2021-11-09 17:21:20 +01:00
Omar Kallel
01d36c0edf Revert "Ticket #6359: icwmp: Reduce I/O on filesystem"
This reverts commit 4e512e588e.
2021-11-09 16:53:34 +01:00
Omar Kallel
dc642082f9 Revert "Stage var state uci"
This reverts commit 2ea9a2e311.
2021-11-09 16:49:22 +01:00
vdutta
2ea9a2e311 Stage var state uci 2021-11-09 16:14:29 +01:00
Omar Kallel
4e512e588e Ticket #6359: icwmp: Reduce I/O on filesystem 2021-11-09 16:14:18 +01:00
Amin Ben Ramdhane
c88074d9c2 reduce unused memory allocation 2021-11-08 17:33:20 +01:00
Omar Kallel
6b1eca2873 get varstate uci option with confdir instead of savedir 2021-10-05 14:31:44 +01:00
Amin Ben Ramdhane
92d1f62cab bbf: cleanup
- fix flawfinder and cppcheck issues
 - remove all unused functions
2021-02-10 17:31:55 +01:00
Amin Ben Ramdhane
eef08e0770 bbf: remove the call to icwmp shell script 2021-01-04 10:22:12 +01:00
Amin Ben Ramdhane
d5bf04b6a2 bbf: Fix some transaction issues and improve the code 2020-12-07 22:20:12 +01:00
Amin Ben Ramdhane
15d02b20fa bbf: commit uci changes under bbfdm repo when calling get_value, get_name, etc...
- commit uci changes under '/etc/bbfdm' when calling all methods except set/add/delete
 - align icwmp cli with bbf changes
 - remove unused functions
2020-12-02 22:37:40 +01:00
vdutta
823183c11e Save uci changes in place of commit 2020-12-01 11:38:14 +05:30
Amin Ben Ramdhane
18643f29b3 bbf: enhance the code
- remove unused argument from dmuci_add_section() and dmuci_add_section_bbfdm() functions
 - use snprintf instead of dmasptintf
 - change function name: add_list_paramameter -> add_list_parameter
2020-11-23 10:58:48 +01:00
Amin Ben Ramdhane
143afb5f2b bbf: check and create a new dmmap file if not there when adding a new section 2020-10-23 17:33:54 +01:00
Amin Ben Ramdhane
895c6d6e88 bbf: use dmuci_init_bbfdm function when allocating uci_ctx_bbfdm 2020-09-28 13:11:07 +01:00
Amin Ben Ramdhane
027d8fb599 bbf: save diagnostics data under '/etc/bbfdm/dmmap_diagnostics' instead of '/vat/state/cwmp' 2020-09-28 10:08:13 +01:00
Amin Ben Ramdhane
8da2fd3564 db config: get config path in init call 2020-09-11 15:32:40 +01:00
Amin Ben Ramdhane
e087f42404 db config: use '/lib/db/config' if exists else '/etc/board-db/config' path 2020-09-11 14:55:25 +01:00
Amin Ben Ramdhane
bbecdd7444 Ticket refs #2845: bbf: add support the case uci config is updated manually 2020-08-22 16:37:32 +01:00
Rohit Topno
5dfeca7cdb bbf: Made ingress and egress qos mapping configurable through tr181.
Author:    Rohit Topno <r.topno@gxgroup.eu>
 Date:      Wed Aug 12 00:34:33 2020 +0530
2020-08-18 15:34:23 +02:00
Amin Ben Ramdhane
2e4bc3688b UCI: added get value functions with a default value 2020-06-28 19:02:09 +01:00
Amin Ben Ramdhane
3dd66344b3 Ticket refs #2511: libbbf: JSON schema support for Alias and Link 2020-05-12 00:59:17 +01:00
vdutta
0a04451516 dmuci: Fix memory leak on add/delete objects 2020-05-05 16:43:04 +05:30
Amin Ben Ramdhane
67891bd0e4 Fix compiler errors on x86 environment 2020-04-12 17:58:39 +01:00
Amin Ben Ramdhane
905d78844c Ticket refs #1254: TR-x69: add support for parameter validation 2020-02-20 23:25:49 +01:00
Daniel Danzberger
7ce4410723 dmuci: fix some const compiler warnings
Read-only values should be marked with const to help the compiler
optimize code. But this would requrire a bigger rewirte of all the code,
hence the original code did not use const at all.

This should be done in the future to ensure good code quality
and performance.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:51:28 +01:00
Daniel Danzberger
fb12136904 dmuci: fix returning of invalid pointers
This fixes segfaults and pointers with invalid strings for:
 - dmuci_add_section
 - dmuci_set_value_by_section
 - dmuci_set_value

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:51:28 +01:00
Daniel Danzberger
033380161d Fix memleak from not freed uci_list_configs pointers
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:51:28 +01:00
Daniel Danzberger
2c118cd2b3 Fix several segfaults when UCI values are not available
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:51:27 +01:00
Amin Ben Ramdhane
ff14c27fc3 clean up the source code
- remove unused variables
- fix coding style of most function (Indentation, Tabulation, ..)
- check the source code using cppcheck tool
- change sprintf by snprintf
2020-02-12 19:08:49 +01:00
Amin Ben Ramdhane
4ab526b9f2 Ticket refs#1598: libbbfdm: plug-in based with support for dynamic loading of libraries + separate libbbfdm into two libraries: libbbf_api (API) and libbbfdm (data model) 2020-01-21 22:43:37 +01:00
Renamed from dmuci.c (Browse further)