Commit graph

1596 commits

Author SHA1 Message Date
Amin Ben Ramdhane
61a1c57664 Add sysfs and procfs mapping + update mapping of some parameters + clean up 2020-05-12 00:05:40 +01:00
Sukru Senli
44682f5fcd deviceinfo-iopsyswrt: fetch static data from db deviceinfo 2020-05-09 16:13:50 +02:00
Sukru Senli
9b21446772 deviceinfo: use correct parameter for sw version 2020-05-08 12:09:20 +02:00
Omar Kallel
8575e1db9f Set PortMapping disabled as default status 2020-05-08 10:41:34 +01:00
Sukru Senli
0865b2cdae add DeviceInfo.Description and ManagementServier.UpgradesManaged parameters 2020-05-07 20:56:27 +02:00
Amin Ben Ramdhane
f01badfef5 VLANTermination: fix some issues 2020-05-06 12:46:19 +01:00
Amin Ben Ramdhane
8c60d320ae Delete Object: fix issues related IP.Interface. and Bridging.Bridge. objects 2020-05-05 14:57:50 +01:00
vdutta
0a04451516 dmuci: Fix memory leak on add/delete objects 2020-05-05 16:43:04 +05:30
Amin Ben Ramdhane
a42590ac71 SoftwareModules: update the object name softwaremanagement -> swmodules 2020-05-05 00:34:33 +01:00
Amin Ben Ramdhane
aed0e402f5 IP.Interface: remove only the proto and ifname options instead of deleting the section 2020-05-04 17:22:55 +01:00
Amin Ben Ramdhane
6e186c8b1e bbf: fix reboot issue 2020-05-04 12:40:18 +01:00
Amin Ben Ramdhane
6c711d0b73 QoS: cleanup 2020-05-04 00:47:40 +01:00
Amin Ben Ramdhane
52c5728a89 IP.Interface: remove the unused Interface when setting LowerLayers on any Ethernet.VLANTermination 2020-05-03 14:58:52 +01:00
Amin Ben Ramdhane
814baeebea Update LowerLayers of Ethernet.Link, InterfaceStack after changing the development of Bridge.Port object 2020-05-03 14:11:41 +01:00
Amin Ben Ramdhane
bda75a662c fix compiler warnings 2020-05-02 01:19:39 +01:00
Amin Ben Ramdhane
15e9323b71 Ticket refs#2494: libbbf: wrong handling of multiple bridging object handling 2020-05-01 18:39:04 +01:00
Rahul
a8804c5a25 bbf: Fix bugs related to memory leak and linker
As per Amin's comments update the code to fix issue. Thanks
Amin for the review
2020-04-29 12:19:41 +05:30
Rahul
20f0c5211c bbf: add support for mld snooping and proxy
Added support for MLD configuration using the new proposed data
model.
Resolve bug in IGMP to be able to delete child objects when
parents are deleted from the dmmap_mcast file.
2020-04-28 11:31:31 +05:30
Rahul
685d8fa611 bbf: more improvements
one loop made more efficient along with some unnecessary code that
has been simplified now.
2020-04-28 11:31:31 +05:30
Rahul
458964164e bbf: Fix harcoding of Filter.Enable parameter and some improvements.
Remove the hard coded value of Filter.Enable and added configuration
support for the same.

Note: With this, I think I am ready to raise merge request for this,
I will finalise the mcastmngr changes now and then raise a merge request
once that is in iopsys devel
2020-04-28 11:31:31 +05:30
Rahul
e6da2d7f4a bbf: Fix uci for proxy interface
Changes done are:
1. Interfaces in the proxy uci section are called upstream_interface
   and downstream_interface as against proxy_interface and snooping_interface
   earlier.
2. The interface now bears the value of the actual linux interface, so,
   the upstream interface for example is now eth4.1 instead of wan.
3. A bug in the determining of bridging instance was identified and fixed.

The UCI looks as follows now:
root@iopsys:~# cat /etc/config/mcast

config proxy 'mproxy_1'
	option enable '0'
	option proto 'igmp'
	option version '2'
	option robustness '2'
	option aggregation '0'
	option last_member_query_interval '10'
	option query_interval '120'
	option query_response_interval '10'
	list downstream_interface 'br-wan100'
	list upstream_interface 'eth4.1'

config snooping 'msnoop_1'
	option enable '0'
	option proto 'igmp'
	option version '2'
	option robustness '2'
	option aggregation '0'
	option interface 'br-wan100'
2020-04-28 11:31:31 +05:30
Rahul
1b16a14089 bbf: add support for the new IGMP vendor extension
This commit caters to support for IGMP.Snooping and IGMP.Proxy objects except
for reading statistics in the form of Snooping.ClientGroup and Proxy.ClientGroup
objects.

ToDo:
1. Implement enable parameter for filter.

This is what it looks like btw:
root@iopsys:~# cat /etc/config/mcast

config snooping 'msnoop_1'
	option enable '0'
	option proto 'igmp'
	option version '2'
	option robustness '2'
	option aggregation '0'
	list filter '2.2.2.2'
	list filter '2.2.2.1'
	option interface 'br-wan'

config proxy 'mproxy_1'
	option enable '0'
	option proto 'igmp'
	option version '2'
	option robustness '2'
	option aggregation '0'
	list filter '1.1.1.1'
	list filter '1.1.1.2'
	list snooping_interface 'br-wan'
	list proxy_interface 'wan'

and the output of usp get is:
root@iopsys:~# ubus call usp get '{"path":"Device.X_IOPSYS_EU_IGMP."}'
{
	"X_IOPSYS_EU_IGMP": {
		"Proxy": [
			{
				"Aggregation": false,
				"Enable": false,
				"Filter": [
					{
						"Enable": false,
						"IPAddress": "1.1.1.1"
					},
					{
						"Enable": false,
						"IPAddress": "1.1.1.2"
					}
				],
				"FilterNumberOfEntries": 2,
				"ImmediateLeave": false,
				"Interface": [
					{
						"Interface": "Device.IP.Interface.1.",
						"Upstream": false
					},
					{
						"Interface": "Device.Bridging.Bridge.1.Port.1.",
						"Upstream": false
					}
				],
				"InterfaceNumberOfEntries": 2,
				"LastMemberQueryInterval": 0,
				"QueryInterval": 0,
				"QueryResponseInterval": 0,
				"Robustness": 2,
				"Version": "V2"
			}
		],
		"ProxyNumberOfEntries": 1,
		"Snooping": [
			{
				"Aggregation": false,
				"Enable": false,
				"Filter": [
					{
						"Enable": false,
						"IPAddress": "2.2.2.2"
					},
					{
						"Enable": false,
						"IPAddress": "2.2.2.1"
					}
				],
				"FilterNumberOfEntries": 2,
				"Interface": "Device.Bridging.Bridge.1.Port.1.",
				"Robustness": 2,
				"Version": "V2"
			}
		],
		"SnoopingNumberOfEntries": 1
	}

All objects/parameters were set using usp so we know that works.
2020-04-28 11:31:31 +05:30
Omar Kallel
073d2693f4 Device.Security fix bugs 2020-04-27 11:18:27 +01:00
Sukru Senli
fb34bcd008 security: collect certificates by section type instead of specific section name 2020-04-27 11:18:18 +01:00
Amin Ben Ramdhane
974309dc77 Fix compile errors on x86 environment 2020-04-26 13:44:26 +01:00
Amin Ben Ramdhane
09048693c7 Ticket refs#2494: bbf: multiple bridging object handling 2020-04-26 13:17:26 +01:00
Omar Kallel
87dd13f4d5 Segmentation fault fixe for Security browse object 2020-04-24 11:35:07 +01:00
Daniel Danzberger
4d67121a68 Revert "change strcat->strncat"
This reverts commit c0a476dec0.
2020-04-22 10:08:39 +02:00
Daniel Danzberger
a3113301be Fix compile error on 64 bit systems
Fixes casting pointers of invallid size to int.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-04-22 10:07:30 +02:00
Amin Ben Ramdhane
6c89f78545 Update mappings of some parameters 2020-04-20 16:21:31 +01:00
Sukru Senli
f462f1f54e deviceinfo: update mappings of some parameters 2020-04-20 12:06:24 +01:00
Amin Ben Ramdhane
00c60187fb Ticket refs #2483: TR-181: most Alias values are empty 2020-04-20 00:18:52 +01:00
Amin Ben Ramdhane
8f500aab97 Revert "Ticket refs #2483: TR-181: most Alias values are empty" 2020-04-17 13:45:45 +01:00
Amin Ben Ramdhane
4c4d298b0d Ticket refs #2483: TR-181: most Alias values are empty 2020-04-17 13:04:51 +01:00
Amin Ben Ramdhane
f6b0352b83 XMPP: fix segfault on add object connection when the cwmp_xmpp config is not available 2020-04-17 11:37:56 +01:00
Amin Ben Ramdhane
c0a476dec0 change strcat->strncat 2020-04-16 18:16:26 +01:00
Amin Ben Ramdhane
72c1507f28 Update gitignore file 2020-04-16 12:03:35 +01:00
Amin Ben Ramdhane
159a2607b9 change sprintf -> snprintf 2020-04-16 12:03:12 +01:00
Sukru Senli
78eb9248b4 wifi: fix wrong mapping of macaddr 2020-04-15 10:37:38 +02:00
Amin Ben Ramdhane
2f30e6d079 Ethernet: change Link name value from device 2020-04-14 18:07:51 +01:00
Amin Ben Ramdhane
8c8cd72622 Add .gitlab-ci.yml 2020-04-14 17:39:43 +01:00
Daniel Danzberger
0c2d23ac41 tr181: interfacestack: fix segfault on browseInterfaceStackInst
Fixes segfault caused by unintialized stack pointers.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-04-14 15:24:11 +02:00
Omar Kallel
da40d40d35 dmasprintf: check negatif size case 2020-04-14 10:00:05 +01:00
Amin Ben Ramdhane
67891bd0e4 Fix compiler errors on x86 environment 2020-04-12 17:58:39 +01:00
Amin Ben Ramdhane
40b6b1cf79 X_<VENDOR>_OWSD: add validation functions 2020-04-12 17:16:59 +01:00
Sukru Senli
0693cef8d5 remove X_<VENDOR>_PowerManagement object 2020-04-12 13:47:52 +02:00
Sukru Senli
b02097d09a X_<VENDOR>_MCPD object will be added by mcpd package; remove here 2020-04-12 12:12:05 +02:00
Amin Ben Ramdhane
8138de2441 Update gitignore file 2020-04-11 23:51:52 +01:00
Amin Ben Ramdhane
312da98571 remove parameters not supported by the data model 2-13 2020-04-11 21:17:57 +01:00
Sukru Senli
5251a43a26 ethernet: interface maxbitrate value handling corrected 2020-04-11 20:06:59 +02:00