Commit graph

620 commits

Author SHA1 Message Date
Daniel Danzberger
3f78b737d8 tr181: bridge: fix stack corruption and overflow
Increase the size of linker_buf to avoid buffer overflows and
thereby stack corruption.

NOTE: this is just a workaround and not a real fix !

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2021-03-03 08:12:58 +01:00
Daniel Danzberger
58e0e1f811 tr181: qos-openwrt: Minor coding style fixes
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2021-03-02 08:41:54 +01:00
Daniel Danzberger
f322976922 tr181: Add missing symbols for openwrt builds
Fixes these linker errors when building with --generic-openwrt

/usr/bin/ld: /usr/local/lib/libbbfdm.so: undefined reference to `os_get_supported_modes'
/usr/bin/ld: /usr/local/lib/libbbfdm.so: undefined reference to `os_set_QoSClassification_DestVendorClassID'
/usr/bin/ld: /usr/local/lib/libbbfdm.so: undefined reference to `os_get_QoSClassification_DestVendorClassID

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2021-03-02 08:39:07 +01:00
Amin Ben Ramdhane
4ffc18c1af InterfaceStack: fix segfault on browseInterfaceStackInst 2021-03-01 13:48:40 +01:00
Amin Ben Ramdhane
f46d263952 Ticket refs #4374: fix object Add for the whole data model 2021-02-28 21:50:29 +01:00
Amin Ben Ramdhane
8f681b3e86 NAT: add support for LeaseDuration parameter 2021-02-21 20:59:10 +01:00
Sukru Senli
4287403de7 Revert "NAT: add support for LeaseDuration parameter"
This reverts commit dca35827c7.
2021-02-19 19:25:52 +01:00
Amin Ben Ramdhane
a5e5fa26a8 DSL: set the default LinkEncapsulationUsed to 'G.993.2_Annex_K_PTM' if link_encapsulation_used is auto 2021-02-19 17:38:13 +01:00
Omar Kallel
33efd68d76 Add to Device.DSL.Channel. and Device.FAST.Line dmmap linkers to set/get Device.ATM/PTM.Link.*.LowerLayers parameters 2021-02-19 16:42:42 +01:00
Amin Ben Ramdhane
bc71c91903 Ticket refs #4283: Map Device.WiFi.AccessPoint/EndPoint.{i}.Security.ModesSupported to ubus objects 2021-02-19 15:46:06 +01:00
Amin Ben Ramdhane
dca35827c7 NAT: add support for LeaseDuration parameter 2021-02-19 15:43:49 +01:00
Amin Ben Ramdhane
fcbe0daf80 Ticket refs #3392: implement Device.Firewall.Chain.{i}.Rule.{i}.ExpiryDate parameter 2021-02-19 15:43:41 +01:00
Amin Ben Ramdhane
58ff5de657 bbf: implement Device.PPP.Interface.{i}.IPv6CP.RemoteInterfaceIdentifier parameter 2021-02-19 15:23:07 +01:00
Amin Ben Ramdhane
23a556d273 Device.Firewall.Chain.{i}.Rule.{i}.: SourceInterface and DestInterface cannot be set to empty string 2021-02-19 10:57:46 +01:00
Amin Ben Ramdhane
14f638fa53 Ticket refs #3794: implement Device.DHCPv4.Server.Enable parameter 2021-02-18 10:59:53 +01:00
Omar Kallel
d58a860915 Fix parameters Device.ATM.Link.*.LowerLayer && Device.PTM.Link.*.LowerLayer 2021-02-16 18:45:34 +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
844f19b794 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-12 17:40:17 +01:00
Amin Ben Ramdhane
99c27927de PPP.Interface.: Add support for IPCP and IPv6CP objects 2021-02-12 12:41:55 +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
b90c069971 add support for all operstate mappings related to Status parameter 2021-02-11 18:31:59 +01:00
Amin Ben Ramdhane
d5a55c8f4c ATM,PTM: remove unknown status 2021-02-11 16:11:16 +01:00
Amin Ben Ramdhane
20d5f3bf82 ATM,PTM: Add support for Enable parameter 2021-02-11 14:13:22 +01:00
Amin Ben Ramdhane
9d3f12e527 ATM,PTM: get Status value from sysfs instead of hard coding it 2021-02-11 11:55:07 +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
a528164bad NAT: Correct UCI mapping for PortMapping object 2021-02-09 21:54:01 +01:00
Amin Ben Ramdhane
db5b6edb09 NAT: Set the default interface when setting allInterface parameter to 1 if it is not defined 2021-02-09 21:51:34 +01:00
Amin Ben Ramdhane
fde0ce36bc NAT: update the mapping of some parameters
- Device.NAT.PortMapping.{i}.RemoteHost
 - Device.NAT.PortMapping.{i}.ExternalPort
 - Device.NAT.PortMapping.{i}.ExternalPortEndRange
 - Device.NAT.PortMapping.{i}.InternalPort
2021-02-09 15:54:01 +01:00
Amin Ben Ramdhane
a554ef855b Device.NAT.PortMapping.: implement AllInterfaces and LeaseDuration parameters 2021-02-08 22:24:13 +01:00
Amin Ben Ramdhane
54e296a989 Routing: use 'l3_device' instead of 'device' to find the corresponding interface for dynamic routes 2021-02-06 22:21:57 +01:00
Amin Ben Ramdhane
a3afc20ea8 bbf: do not use deprecated openssl functions 2021-02-04 10:50:38 +01:00
Hemlata Bhatt
562530a205 Ticket 4176: TR-104: incorrect implementation of CallControl.Line.{i}.DirectoryNumber parameter 2021-02-03 17:14:33 +01:00
Amin Ben Ramdhane
29568bf0b8 InterfaceStack: radio alias value is incorrect when using multiple ssids 2021-02-02 22:47:29 +01:00
Amin Ben Ramdhane
a027c5097d Routing: Multiple fixes
- 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
2021-02-02 15:07:16 +01:00
Feten Besbes
2d3aba05a0 Bridging: fix a segmentation fault when calling set method of Device.Bridging.Bridge.{i}.VLANPort.{i}.VLAN 2021-02-01 19:47:16 +01:00
Amin Ben Ramdhane
af86cbf2f5 Ticket refs #4300 & #4301 : Device.Routing.Router.{i}.{IPv4,IPv6}Forwarding instance created with incorrect default value
*/ 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
2021-02-01 15:56:39 +01:00
Amin Ben Ramdhane
6f9a6c8769 Ticket refs #4302: Device.QoS.Queue. instance created with incorrect default value
Here is the list of fixed parameters:

 - Device.QoS.Queue.{i}.TrafficClasses should be empty
 - Device.QoS.Queue.{i}.Precedence should be 1
 - Device.QoS.Queue.{i}.ShapingRate should be -1
 - Device.QoS.Queue.{i}.SchedulerAlgorithm should be SP
2021-02-01 15:56:29 +01:00
Amin Ben Ramdhane
70c5c51bf0 bbf: upgrade to 2.14 2021-02-01 15:56:20 +01:00
Amin Ben Ramdhane
48e4df1393 FAST.Line.: fix the get method of SNRMRMCds and SNRMRMCus 2021-02-01 15:56:10 +01:00
Amin Ben Ramdhane
5be84f01e3 DSL: update the mapping of some parameters 2021-02-01 15:56:00 +01:00
Amin Ben Ramdhane
9c70a16884 bbf: add the missing pattern => "^$" 2021-02-01 15:55:51 +01:00
Amin Ben Ramdhane
3b0a5a08f0 DSL: LinkEncapsulationSupported => add support for G.994.1 2021-01-29 13:57:07 +01:00
Amin Ben Ramdhane
1afaa474e6 Firewall: show DestMask and SourceMask values with the format 'IPAddress/Prefix' instead of '/Prefix' 2021-01-28 16:47:13 +01:00
Sukru Senli
727a9c8878 dsl: default LinkEncapsulationUsed to G.993.2_Annex_K_PTM 2021-01-28 14:57:35 +01:00
Amin Ben Ramdhane
f17dfc929a Device.IP.Interface.{i}.MaxMTUSize: read its value from sysfs 2021-01-28 11:45:18 +01:00
Amin Ben Ramdhane
bd92aa3b86 Ticket refs #4281: Device.Firewall.Chain.{i}.Rule.{i}. invalid IPPrefix value of DestMask and SourceMask parameters 2021-01-28 10:47:44 +01:00
Amin Ben Ramdhane
3258396176 Ticket refs #4279: AddressingType and Origin parameters not IPCP when proto is PPPoE 2021-01-26 17:56:54 +01:00
Amin Ben Ramdhane
4631504931 Ticket refs #4282: Device.IP.Interface.{i}.MaxMTUSize parameter is mapped incorrectly 2021-01-26 14:49:53 +01:00
Daniel Danzberger
1a8c349787 openwrt: add libcurl dependency
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2021-01-26 04:25:58 +01:00
Amin Ben Ramdhane
dd08e11ee1 fix compiler warnings on x86 and staic code analysis 2021-01-25 19:31:56 +01:00