- 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
Add preferred shift time to the UTC time
ValidLifetime parameter: Replace localtime with UTC time
RouteLifetime parameter: Replace localtime with UTC time
IPv6 PreferredLifetime parameter: Replace localtime with UTC time
Security LastModif parameter: Replace localtime with UTC time
AssociationTime parameter: Replace localtime with UTC time
IPV6 PreferredLifetime, ValidLifetime parameter: Replace localtime with UTC time
DHCPv6 PreferredLifetime, ValidLifetime parameter: Replace localtime with UTC time
Add dm_time_utc_format function to get UTC time format
DHCPv4 LeaseTimeRemaining parameter: Replace localtime with UTC time
DeviceInfo Date parameter: Replace localtime with UTC time
DynamicDNS LastUpdate parameter: Replace localtime with UTC time
VoiceService ExpireTime parameter: Replace localtime with UTC time
Backup() parameter: Replace localtime with UTC time
- Device.Routing.Router.{i}.IPv4Forwarding.{i}.: fix a crash in add method
- Device.Routing.Router.{i}.IPv{4,6}Forwarding.{i}.: implement the delete method for all instances instead of returning 9005 error
- Device.Routing.Router.{i}.IPv6Forwarding.{i}.ForwardingPolicy: change its default permission according to the standard
- Device.Routing.Router.{i}.IPv6Forwarding.{i}.Alias: fix get/set method
- Update the default value of DMRouting struct in order to fix the setting of parameters via obuspa
*/ add support for route6_disabled section when disabling static route6
*/ Fix set method of Device.Routing.Router.{i}.IPv4Forwarding.{i}.Enable
*/ Fix get/set method of Device.Routing.Router.{i}.IPv6Forwarding.{i}.Enable
*/ below the list of fixed parameters:
- Device.Routing.Router.{i}.IPv4Forwarding.{i}.DestIPAddress should be empty
- Device.Routing.Router.{i}.IPv4Forwarding.{i}.DestSubnetMask should be empty
- Device.Routing.Router.{i}.IPv4Forwarding.{i}.Enable should be false
- Device.Routing.Router.{i}.IPv4Forwarding.{i}.Status should be Disabled
- Device.Routing.Router.{i}.IPv4Forwarding.{i}.GatewayIPAddress should be Empty
- Device.Routing.Router.{i}.IPv4Forwarding.{i}.ForwardingMetric should be -1
- Device.Routing.Router.{i}.IPv6Forwarding.{i}.DestIPPrefix should be empty
- Device.Routing.Router.{i}.IPv6Forwarding.{i}.NextHop should be empty
- Device.Routing.Router.{i}.IPv6Forwarding.{i}.Interface should be empty
- Device.Routing.Router.{i}.IPv6Forwarding.{i}.Enable should be false
- Device.Routing.Router.{i}.IPv6Forwarding.{i}.Status should be Disabled
- Device.Routing.Router.{i}.IPv6Forwarding.{i}.ForwardingMetric should be -1
- 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
- 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.
- 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.
Fixes snprintf truncated output compiler warnings.
Example:
--
../dmentrylibrary.c:31:38: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
31 | snprintf(buf, sizeof(buf), "%s/%s", folder_path, entry->d_name);
| ^
../dmentrylibrary.c:31:5: note: ‘snprintf’ output 2 or more bytes (assuming 257) into a destination of size 256
31 | snprintf(buf, sizeof(buf), "%s/%s", folder_path, entry->d_name);
--
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
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>
- remove unused variables
- fix coding style of most function (Indentation, Tabulation, ..)
- check the source code using cppcheck tool
- change sprintf by snprintf