Commit graph

57 commits

Author SHA1 Message Date
Amin Ben Ramdhane
080f7b4f85 Ticket refs #7333: fix warnings, code analysis and clean up the code
- Fix all errors catched by cppcheck threadsafety (cppcheck --error-exitcode=0 --addon=threadsafety bbf)
 - Fix some errors catched by cppcheck cert (cppcheck --error-exitcode=0 --addon=cert bbf)
 - Add new str-protected macros instead of using str functions directly to avoid crashes
2022-02-16 10:33:59 +00:00
Amin Ben Ramdhane
2fc977434f InterfaceStack: Fix LowerLayers value of the VlanTermination object 2022-01-20 14:32:51 +01:00
sandeep
ab7b12d96e Fixed Wrong InterfaceStack for QinQ VLAN (double vlan) interface 2022-01-14 15:57:05 +00:00
Amin Ben Ramdhane
c33768ad99 Ticket refs #6924: VLANTermination instance is created after adding Bridge.{i}.VLANPort. object 2022-01-10 14:38:26 +01:00
Amin Ben Ramdhane
0485ccda84 Ticket refs #6924: VLANTermination instance is created for Bridging.Bridge vlan 2021-12-31 22:01:06 +01:00
Amin Ben Ramdhane
5fb2c1036c bbf: Update functions name 2021-12-31 20:47:12 +01:00
Amin Ben Ramdhane
54937be474 Ticket refs #6911: Failed to re-create Bridge 2021-12-31 20:47:02 +01:00
Amin Ben Ramdhane
35633a3bc8 Ticket refs #6623: remove static code analysis warnings 2021-11-22 11:47:14 +01:00
Neeraj Bijalwan
2864ddeacd Add version in parameters 2021-11-03 09:30:12 +01:00
Amin Ben Ramdhane
42bc8e95a7 Ticket refs #5773: improve and simplify handle instance in browser and add functions 2021-09-09 16:56:02 +00:00
Amin Ben Ramdhane
ed22bfbe0f Ticket refs #5710: Adapt Provider Bridge Object to OpenWrt 21.02 network stack 2021-08-12 14:08:20 +01:00
Amin Ben Ramdhane
f7c10416b3 Ticket refs #6550: Adapt data models to OpenWrt 21.02 network stack 2021-08-02 10:31:17 +01:00
Amin Ben Ramdhane
6a252f514c Ticket refs #5505: Move operate commands to there own datamodel files 2021-07-22 15:18:01 +01:00
Amin Ben Ramdhane
45a6fdd925 Ticket refs #5174: LowerLayers parameter in the Device.IP.Interface.{i}. object can not be modified 2021-05-19 20:06:16 +01:00
Amin Ben Ramdhane
4ffc18c1af InterfaceStack: fix segfault on browseInterfaceStackInst 2021-03-01 13:48:40 +01:00
Amin Ben Ramdhane
cdad11d92d Ticket refs #4386: dm_validate_string in libbbf_api requires length of enumeration and pattern arrays to be hardcoded at caller
- use NULL-terminated arrays instead of providing length by the caller
2021-02-15 21:13:18 +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
29568bf0b8 InterfaceStack: radio alias value is incorrect when using multiple ssids 2021-02-02 22:47:29 +01:00
Jomily K Joseph
26c684593c bbf : #3969 TR-181: Add Device.Bridging.ProviderBridge.{i} support (REBASE)
- Add support for provider bridge on devel
2021-01-17 17:05:59 +00:00
Amin Ben Ramdhane
db54efa61d Device.(ATM/PTM).Link.{i}.LowerLayers: fix its value after updating the DSL index 2020-12-30 20:44:44 +01:00
Amin Ben Ramdhane
b9a12b057b remove tr064 feature and cleanup 2020-12-16 10:03:25 +01:00
Amin Ben Ramdhane
3906faa12d Ticket refs #3730: bbf: fix Static Code Analysis 2020-12-16 10:00:19 +01:00
Amin Ben Ramdhane
5d10fba083 bbf: improve and cleanup the code
- update_instance_alias: read config and type section from the passed section in handle_update_instance
 - remove append_dot_to_string() function
2020-12-06 22:18:18 +01:00
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
Omar Kallel
c8de221c11 Ticket refs #3725: bbf: remove unnecessary arguments from object/parameter definition 2020-11-17 16:21:11 +01:00
Amin Ben Ramdhane
38bbb5e455 Ticket refs #2920: TR-181: Device.IP.Interface.{i}. IPv4Address, IPv6Address and IPv6Prefix multi-instance objects are treated as single-instance 2020-11-07 19:12:29 +01:00
Amin Ben Ramdhane
5573fd538a InterfaceStack: fix the value of LowerAlias parameter when it's mapped to VLANTermination 2020-10-08 19:19:06 +01:00
Amin Ben Ramdhane
f9d2c345f1 Ticket refs #2974: Referenced objects have trailing dot 2020-08-26 11:26:33 +01:00
Omar Kallel
7ec89f485b Fix InterfaceStack issues: Ethernet.Link, Bridge.x.Port. 2020-08-25 15:31:30 +01:00
Omar Kallel
2b25d77d26 InterfaceStack LowerAlias: case PPP is higher and VLANTermination is Lower 2020-08-25 15:31:15 +01:00
Omar Kallel
7a4e9504fd Fix some InterfaceStack LowerLayer/LowerAlias 2020-08-25 15:31:02 +01:00
Omar Kallel
e9755c741e Fix InterfaceStack issue case Lowerlayer is Ethernet.Link. 2020-08-25 15:30:49 +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
Omar Kallel
7b409eba77 Device.InterfaceStack LowerAlias fixes: missing some stacks 2020-08-03 12:40:13 +01:00
Omar Kallel
ae78994eea Ticket refs #2930: TR-181: Invalid Device.InterfaceStack.{i}.LowerAlias values 2020-07-28 12:32:08 +01:00
Amin Ben Ramdhane
1b83b77387 Device.Bridging. object: add support for the wireless interfaces 2020-05-28 20:26:01 +01:00
Amin Ben Ramdhane
85b5f603b5 Ticket refs#2585: TR-181: Device.InterfaceStack. object 2020-05-18 10:15:07 +01:00
Amin Ben Ramdhane
814baeebea Update LowerLayers of Ethernet.Link, InterfaceStack after changing the development of Bridge.Port object 2020-05-03 14:11:41 +01:00
Amin Ben Ramdhane
15e9323b71 Ticket refs#2494: libbbf: wrong handling of multiple bridging object handling 2020-05-01 18:39:04 +01:00
Amin Ben Ramdhane
09048693c7 Ticket refs#2494: bbf: multiple bridging object handling 2020-04-26 13:17:26 +01:00
Amin Ben Ramdhane
00c60187fb Ticket refs #2483: TR-181: most Alias values are empty 2020-04-20 00:18:52 +01:00
Amin Ben Ramdhane
8f500aab97 Revert "Ticket refs #2483: TR-181: most Alias values are empty" 2020-04-17 13:45:45 +01:00
Amin Ben Ramdhane
4c4d298b0d Ticket refs #2483: TR-181: most Alias values are empty 2020-04-17 13:04:51 +01:00
Daniel Danzberger
0c2d23ac41 tr181: interfacestack: fix segfault on browseInterfaceStackInst
Fixes segfault caused by unintialized stack pointers.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-04-14 15:24:11 +02:00
Amin Ben Ramdhane
cd391b939b Ticket refs#2344: TR-181: Correct implementation of Device.Ethernet.VLANTermination 2020-04-08 21:51:23 +01:00
Amin Ben Ramdhane
3589aabbc4 Cleanup + remove unused function and struct + improvement the source code 2020-03-29 14:24:51 +01:00
Daniel Danzberger
e22c34b15e tr181: fix compiler warnings
- 1 set but not used.
- multiple strncpy size out of bounds.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-03-25 18:11:00 +01:00
Amin Ben Ramdhane
f1a7b2cbaf VLANTermination: remove vlan_method option 2020-03-25 16:18:57 +01:00
Amin Ben Ramdhane
a1f7ce98cf Ticket refs #1254: Improvement validation parameters 2020-03-13 16:28:32 +01:00
Daniel Danzberger
0460307fb4 Only export symbols to the library that belong to the API interface
This commit makes all symbols that are not part of the API Interface,
or used only in the object files where they are defined, static.

Causing the following benefits:
 - The compiler can resolve functions for better performance
 - The library size is decreased

NOTE: Spec file generators need to be adjusted for newer spec's to not do the same mistakes again

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-03-09 21:23:57 +01:00