Commit graph

133 commits

Author SHA1 Message Date
Feten Besbes
56fa2ec2f1 TR181 : Set/GET DHCP Client/Server options values in hexbinary format 2021-10-29 12:01:48 +01:00
Amin Ben Ramdhane
0ddc89bda0 Revert "Ticket refs #4386: dm_validate_string in libbbf_api requires length of enumeration and pattern arrays to be hardcoded at caller"
This reverts commit 2a44343127.
2021-02-26 15:21:52 +01:00
Amin Ben Ramdhane
2a44343127 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-22 12:32:58 +01:00
Amin Ben Ramdhane
7c1ef7bd87 bbf: wrong behavior when configuring interface section with dhcp proto
- Device.DHCPv{4,6}.Client.{i}: fix add/delete method
 - Device.DHCPv4.Client.{i}: fix set method of Interface parameter
 - Remove automatic and unwanted DHCPv4.Client instances from the config
 - Creation of new Device.DHCPv4.Client object should not automatically create a new Device.IP.Interface object instance
 - Align DHCPv{4,6}.Client parameters with the new changes
 - Comment out Device.IP.Interface.{i}.AutoIPEnable parameter
2021-02-18 18:04:20 +01:00
Rohit Topno
a20d7e0c85 bbf: Made provider bridge configurable through tr181. 2020-12-02 11:17:44 +05:30
Amin Ben Ramdhane
d3e02617ee bbf: accept dateTime type with microsecond precision
Some parameters must be specified with microsecond precision such as:
 - Device.IP.Diagnostics.DownloadDiagnostics.(ROMTime, BOMTime, EOMTime, TCPOpenResponseTime, etc)
 - Device.IP.Diagnostics.UploadDiagnostics.(ROMTime, BOMTime, EOMTime, TCPOpenResponseTime, etc)
2020-11-30 16:51:23 +01:00
Amin Ben Ramdhane
86a7d49044 Ticket refs #3879: bbf: dmtype check missing for all parameters 2020-11-21 14:11:22 +01:00
Amin Ben Ramdhane
bd5ec47a0c bbf: if the value is empty -> get default value by type 2020-11-21 14:09:47 +01:00
Amin Ben Ramdhane
c522ce40c7 Ticket refs #2920: TR-181: Device.IP.Interface.{i}. IPv4Address, IPv6Address and IPv6Prefix multi-instance objects are treated as single-instance 2020-11-13 13:25:15 +01:00
Amin Ben Ramdhane
ec3b032d0f bbf: Fixed crash on QEMU 2020-10-23 11:51:39 +01:00
Amin Ben Ramdhane
faa12a3431 DHCPv4: fix SentOption segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Enable : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Tag : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Value : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.: fix add/del segfault issue
2020-10-10 11:55:40 +01:00
Amin Ben Ramdhane
802d575b3f DHCPv4: fix MaxAddress param value 2020-10-10 11:11:32 +01:00
Sukru Senli
020218dccc Revert "DHCPv4: fix segfault issue"
This reverts commit 13455ee4a2.
2020-10-10 11:23:07 +02:00
Amin Ben Ramdhane
13455ee4a2 DHCPv4: fix segfault issue
- Device.DHCPv4.Server.Pool.{i}.MaxAddress: fix its value
- Device.DHCPv4.Client.{i}.SentOption.1.Enable : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Tag : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Value : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.ReqOption.: fix add/del segfault issue
2020-10-09 14:48:14 +01:00
Amin Ben Ramdhane
fd2354a9c5 WiFi: fix some issues
- Device.WiFi.Radio.1.SupportedStandards : fix its value
- Device.WiFi.EndPoint.1.WPS.ConfigMethodsEnabled : fix its set value
- Device.WiFi.EndPoint.1.WPS.PIN : fix its set value
- Device.WiFi.EndPoint. : fix segfault when calling delete_obj all
2020-10-09 14:15:05 +01:00
Omar Kallel
3bd148f3c4 Extract end_session_flag from bbf to icwmp 2020-10-05 09:56:46 +01:00
Omar Kallel
128e5b0900 Fix warnings 2020-10-02 11:22:51 +01:00
Omar Kallel
8f712c4567 cleanup: remove unused notification functions 2020-10-02 11:22:41 +01:00
Omar Kallel
86392e2603 Add entry get_value function for full path parameter 2020-10-02 11:22:31 +01:00
Omar Kallel
83ef9e9b0b add dmjson_get_string && fix segfault: add tests case ptr != NULL 2020-09-21 14:02:42 +02:00
vdutta
ab26cfaea6 get_instances: Added next-level support in instances 2020-09-14 15:56:14 +05:30
Daniel Danzberger
5fe7af87d4 dmoperate: Add arguments to operate helpers
Adds input and output arguments for each operate call
Arguments are stored in the data field on USP_LIST_OPERATE

NOTE: Dynamic operates need to be recomplied when running libbbf
      with this commit, hence the op_cmd struct has changed

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-09-11 17:33:09 +02: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
95d1440650 get_instance: return err if find_param=0 2020-09-11 10:53:25 +01:00
vdutta
31db6dab25 instance: Fix instances for all paths 2020-09-11 11:15:33 +02:00
Amin Ben Ramdhane
8d721664e6 db config: move /lib/db -> /etc/board-db due to changes in targets 2020-09-08 12:24:55 +01:00
Amin Ben Ramdhane
99705ac5f9 bbf: fix compiler warnings 2020-09-03 21:47:26 +01:00
Amin Ben Ramdhane
bc400a368d Ticket refs#3005: fix issue in get schema method 2020-08-31 14:59:37 +01:00
Amin Ben Ramdhane
9b2fdc3562 Ticket refs #2845: fix add object issues 2020-08-31 10:22:31 +01:00
Daniel Danzberger
0e46e0630b operate: fix memory issues
- Fix memleak of not free'd json_tokener_parse memory
- Make read-only memory const

Note that this commit changes the operation input argument from
'char *' to 'json_object *', which breaks older dynamic_operate
implementations from outisde the bbf source tree.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-08-27 12:43:48 +02: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
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
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
8bc317df54 bbf: clean mcast
- Move missing mcast functions from dmcommon file to mcast file
- Remove extern from function declarations
- Fix some indentation
- Comment unsupported parameters
2020-08-18 14:27:56 +01:00
Ratish
454be64405 igmp stats: Moved the mcast specific function to igmp file and mld file. 2020-08-18 12:07:41 +02:00
Daniel Danzberger
164250ca8e Add CMD_GET_INSTANCES
This new command will return all instances on a given path

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-08-06 10:34:41 +02:00
Vivek Kumar Dutta
32f5cb92dd dmcommon: Update boolean validator 2020-07-16 11:38:09 +02:00
Amin Ben Ramdhane
b408257e35 Enhance code structure 2020-07-08 18:38:08 +01:00
vdutta
bfd4f7bae5 obuspa: Get data model schema present in DUT
- Obuspa required to register the schema present in DUT, in the
 current methods, for multi-instance objects the instance is only
 visible if at-least one object/instance present, this leads to
 anomaly in obuspa, when some objects getting created in run-time.
 e.g: Device.WiFi.AccessPoint.1.AssociatedDevice.
 - This change will dump the complete schema irrespective of that node/object
 availability.
2020-07-08 13:51:42 +02:00
Amin Ben Ramdhane
f3c9ed9efd PPP.Interface.: fix get value of stats parameters 2020-07-07 19:39:08 +01:00
Rahul
1cf9c8330f bbf: add support anywan type upstream iface in igmp
It was observed on dg400prime that the uci config was not correctly
generated when wan was of type anywan, this has been taken care of in
this patch. For anywan type IP interface, the list of upstream interfaces
is generated to keep each interface in mind. So, Device.IP.Interface.2
in this case will generate
	list upstream_interface 'eth5.1'
	list upstream_interface 'atm0.1'
	list upstream_interface 'ptm0.1'

test:
- Verify that config is correctly generated for normal interface.
- Verify that config is correctly generated for anywan interface.
- Verify that config is correctly generated for bridge interface.
2020-07-05 16:19:03 +05:30
vdutta
57ae1244cc obuspa: List supported operate commands 2020-06-29 12:50:01 +05:30
Amin Ben Ramdhane
2e4bc3688b UCI: added get value functions with a default value 2020-06-28 19:02:09 +01:00
Omar Kallel
9b8c23ee30 Enhance separation between libbbf_api and libbbfdm for list_enabled_lw_notify variable && fix warnings 2020-06-23 11:39:55 +01:00
Omar Kallel
856d4de5df enhance separation between libbbf_api and libbbfdm (functions: dm_update_file_enabled_notify, copy_temporary_file_to_original_file, del_list_fault_param, json functions) 2020-06-23 10:47:57 +01:00
Omar Kallel
ca758fd9f3 Enhance bbf libs separation: upnp_in_user_mask, list_execute_end_session, apply_end_session, cwmp_set_end_session 2020-06-23 10:47:46 +01:00
Omar Kallel
b6be5bdaa0 Enhance separation between libbbf_api and libbbfdm: apply for end_session_flag variable 2020-06-23 10:47:28 +01:00