Commit graph

142 commits

Author SHA1 Message Date
Amin Ben Ramdhane
50b9d73af7 Align bbf tools with latest changes
- Update the generator of source code
 - Fix the generator of data model in XML format (generate_xml.sh/generate_xml_bbf.sh)
 - Update README.md file
2020-11-18 22:00:12 +01:00
Amin Ben Ramdhane
e24f7bf8ac Ticket refs #3813: TR-181: Incorrect implementation of some of Device.DHCPv4.and Device.DHCPv6. objects/parameters
Fix Get/Set value of these parameters which has a hexbinary encoded value according to the TR-181 standard
 - Device.DHCPv4.Server.Pool.{i}.Option.{i}.Value
 - Device.DHCPv4.Client.{i}.SentOption.{i}.Value
 - Device.DHCPv4.Relay.Forwarding.{i}.UserClassID
 - Device.DHCPv6.Server.Pool.{i}.VendorClassID
 - Device.DHCPv6.Server.Pool.{i}.UserClassID
 - Device.DHCPv6.Server.Pool.{i}.Option.{i}.Value
2020-11-18 20:02:31 +01:00
Shubham Sharma
34f9f678f9 TR-181: Check for -ve value under dm_validate_unsignedInt 2020-11-18 13:03:56 +01:00
vdutta
991fb4a74d Extended fault code mapping for usp 2020-11-18 09:57:40 +01:00
Omar Kallel
3d740e4a66 Segmentation fault fix 2020-11-18 09:54:08 +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
d1d60dfbe0 Ticket refs #3805: TR-181: Device.DHCPv4.Server.Pool.{i}.Client.{i}.Option.{i}.
- Implement Device.DHCPv4.Server.Pool.{i}.Client.{i}.Option.{i}. object
 - Implement Device.DHCPv4.Server.Pool.{i}.Client.{i}.IPv4AddressNumberOfEntries parameter
 - Implement Device.DHCPv4.Server.Pool.{i}.Client.{i}.OptionNumberOfEntries parameter
2020-11-17 15:06:42 +01:00
Amin Ben Ramdhane
437273a254 Ticket refs #3489: TR181: Invalid enumeration parameter values 2020-11-11 11:32:14 +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
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
6da9750f96 bbf: Fixed crash on QEMU 2020-10-23 12:17:40 +01:00
Amin Ben Ramdhane
a83984d914 Ticket refs #3539: bbf: the setting of Interface param has no effect on diagnostic objects 2020-10-19 23:06:05 +01:00
Amin Ben Ramdhane
8ba74d624b bbf: add unique_keys argument to the comment
-  change (const char *[]) -> LIST_KEY
2020-10-17 14:54:33 +01:00
Amin Ben Ramdhane
5839164c29 TR-181: Fixed invalid int && unsignedInt && hexBinary parameter values 2020-10-17 14:08:40 +01:00
Amin Ben Ramdhane
c4c10e2b9c WiFi.DataElements: fix some issues 2020-10-14 11:50:45 +01:00
sverma
4b47c9feab bbf: Added 'base64' datatype 2020-10-14 11:27:08 +05:30
Shubham Sharma
a9fc190ed1 get_schema: Get unique keys from multi instance objects
- As per TR181, there could be one or more unique keys for each
   multi-instance object. Added support to get the unique keys
   associated with the multi-instance object.
 - Changes for generate_source_code.sh to have unique keys as
   extra object parameter.
2020-10-13 10:51:47 +01:00
Amin Ben Ramdhane
c395e8dd51 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 12:46:34 +01:00
Amin Ben Ramdhane
608bb009c9 DHCPv4: fix MaxAddress param value 2020-10-10 12:41:05 +01:00
Amin Ben Ramdhane
c6602debdd Revert "DHCPv4: fix segfault issue"
This reverts commit 893e27b7f9.
2020-10-10 12:35:42 +01:00
Amin Ben Ramdhane
893e27b7f9 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-08 19:19:27 +01:00
Amin Ben Ramdhane
a8dc2edcfa 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-08 19:19:18 +01:00
Omar Kallel
0b0e8a9bdc Extract end_session_flag from bbf to icwmp 2020-10-08 18:59:33 +01:00
Omar Kallel
3505476fa7 Fix warnings 2020-10-08 18:45:14 +01:00
Omar Kallel
718b1504c7 cleanup: remove unused notification functions 2020-10-08 18:41:33 +01:00
Omar Kallel
69a7acef3f Add entry get_value function for full path parameter 2020-10-08 18:41:07 +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
Omar Kallel
c549dad741 add dmjson_get_string && fix segfault: add tests case ptr != NULL 2020-09-21 17:48:39 +01: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