Commit graph

91 commits

Author SHA1 Message Date
vdutta
306d79a86a Configure ssl library
- Remove libbbf_api dependency from libbbfdm
2022-04-13 15:50:44 +05:30
Erik Karlsson
78751e0fc9 dmcommon: remove unused pipe in dmcmd
This avoids leaking file descriptors and potential deadlock in case
the command fills the pipe. Output is sent to /dev/null and dmcmd will
return the exit status instead of a file descriptor.
2022-04-04 13:22:24 +02:00
Amin Ben Ramdhane
7739a90d11 T#7625: Empty MacAddress for VLAN interface 2022-03-18 17:54:22 +01:00
Amin Ben Ramdhane
df6e164c9e WiFiDataElements: Added support for missing objects/parameters and updated mappings 2022-03-17 11:45:01 +01:00
Amin Ben Ramdhane
a2db2419dc T#7156: use cron job to handle schedule Activate firmware image 2022-03-11 10:44:20 +00:00
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
52e6a80306 DHCPv4: update implementation
- Don't create a network interface when adding a new 'DHCPv4.Client.' instance, therefore the network interface will only be managed with 'Device.IP.Interface.' object
2022-02-03 12:28:16 +01:00
Amin Ben Ramdhane
b265b8ca8b LowerLayers: fix empty linker 2022-01-24 20:16:31 +01:00
suvendhu
74b65edade WiFi scanresult to wait for scan_finished or 30sec timeout 2022-01-24 09:44:46 +00:00
Amin Ben Ramdhane
c3ea9e5597 Ticket refs #6892: Parameters used for pathname reference cannot be set to empty 2022-01-10 10:20:03 +01:00
Amin Ben Ramdhane
65939b90aa bbf: add a header file for libbbf_api 2021-12-20 15:43:08 +00:00
Vivek Kumar Dutta
b22628c0dd Get ConnectionRequestURL using ioctl if ifstatus returns empty 2021-12-13 10:14:07 +00:00
Amin Ben Ramdhane
591d7ac3c5 WiFi: Implement MultiAP datamodel based on TR181-2.15 2021-12-10 14:15:48 +01:00
Amin Ben Ramdhane
d04a757b2c Add input value validation to vendor extension mechanisms 2021-10-22 12:35:02 +01:00
Amin Ben Ramdhane
c56a828512 Ticket refs #6166: vendorid, hostname and clientid cannot be set via TR069 2021-10-01 17:35:35 +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
vdutta
f25f6816e2 Fix compilation warnings 2021-08-10 15:31:46 +05:30
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
1c9316e665 IEEE1905: Align with new ubus object 2021-06-04 16:20:04 +01:00
Amin Ben Ramdhane
c21c955236 Ticket refs #3467: Device.WiFi.Radio.{i}. object OperatingStandards and OperatingChannelBandwidth Set handling is wrong 2021-05-26 19:09:28 +01:00
Amin Ben Ramdhane
9290c10b63 RouterAdvertisement: add support for Device.RouterAdvertisement.InterfaceSetting.{i}.AdvMobileAgentFlag parameter 2021-05-20 12:54:57 +01:00
Amin Ben Ramdhane
e9fb75eb97 bbf: implement unit and functional tests 2021-05-03 18:29:28 +01:00
Amin Ben Ramdhane
f27fe021d1 Ticket #4939: Implement Device.RouterAdvertisement. object 2021-05-03 13:50:23 +01:00
Amin Ben Ramdhane
5717e55ac7 save dmmap files under '/etc/bbfdm/dmmap' instead of '/etc/bbfdm' 2021-03-25 19:33:30 +01:00
Amin Ben Ramdhane
5e97bdb5e4 bbf: add support for vendor extension 2021-03-25 16:06:31 +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
679083337d move get_net_device_status function to dmcommon.c file 2021-02-11 19:17:58 +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
ed06627492 Ticket refs #3890: Device.IP.Interface.{i}.IPv6Address.{i}. object is not listing Link-Local addresses 2021-01-21 14:47:51 +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
764fff3088 Device.DHCPv4.Relay.Forwarding.{i}.: Improve browse function 2021-01-11 12:08:47 +01:00
Amin Ben Ramdhane
eef08e0770 bbf: remove the call to icwmp shell script 2021-01-04 10:22:12 +01:00
Omar Kallel
e73024d706 remove the use of dm_enabled_notify file && other cleanup 2020-12-17 12:34:34 +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
026b527588 DHCPv4: fix some issues under DHCPv4.Server.Pool. object and enhance the code
- Fix get/set of LeaseTime, StaticAddressNumberOfEntries parameters
 - Fix an issue in add object of DHCPv4.Server.Pool.{i}. object
 - enhance get/set of some parameters: Enable, Status, SubnetMask, DomainName, IPRouters. so get the value from data instead of the mapping for all the sections and get the corresponding section based on its section name
2020-12-04 11:36:02 +01:00
Amin Ben Ramdhane
da60243b30 Ticket refs #3629: TR-181: Device.DHCPv4.Server.Pool.{i}.StaticAddress. implementation has incorrect behavior
Fix multiple issues in StaticAddress implementation

 - "StaticAddress.{i}.Yiaddr" accepting any IP address -> According to standard, It should accept IP address from DHCP IP pool
 - Same IP address can be assigned to multiple MAC address -> According to standard, Once a IP got bind to a MAC, it should not get bind to other MAC
 - Able to create multiple entry for same MAC -> According to standard, It should accept only one entry for one MAC
 - Able to create multiple object with same Alias -> According to standard, Alias should be unique
2020-11-26 11:06:56 +01:00
Sukru Senli
38e1aef3af deviceinfo: convert Linux priority to a value between 0 and 99 2020-11-23 11:51:25 +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
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
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
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
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
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
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
99705ac5f9 bbf: fix compiler warnings 2020-09-03 21:47:26 +01:00