Commit graph

264 commits

Author SHA1 Message Date
Omar Kallel
2bf36bbbda Ticket refs #2673: TR069: No '4 value change' sent in case of active passive notification 2020-05-28 14:37:32 +01:00
Amin Ben Ramdhane
3f4a97c1af Ticket refs#2512: libbbf: an object should not be presented if the uci file or ubus object it depends on does not exist 2020-05-27 08:55:07 +01:00
Amin Ben Ramdhane
5f4659f054 ubus api: remove unused code and use libubus api by default 2020-05-27 08:47:30 +01:00
Amin Ben Ramdhane
e442cd1a82 SoftwareModules: clean up 2020-05-26 09:40:49 +01:00
Omar Kallel
b7a596a1ff Add header comment to qos-openwrt 2020-05-21 13:53:16 +01:00
Omar Kallel
6a360e1469 QOS object: integrate qos-openwrt file 2020-05-21 13:48:09 +01:00
Sukru Senli
726824bd01 wifi: map OperatingChannelBandwidth to htmode 2020-05-21 12:04:49 +02:00
Sukru Senli
7a4470975e wifi: remove deprecated parameters and correct some mappings 2020-05-21 09:26:22 +02:00
Amin Ben Ramdhane
00f73dbb39 change the license : GPLv2 -> LGPL-2.1 2020-05-18 16:55:19 +01:00
Daniel Danzberger
194d04e121 Add openwrt makefile
With this in source openwrt/ directory you can now build this repo
directly from the current local git HEAD, without updating any external feed.

Example feeds.conf entry:
---
src-link bbf /home/daniel/prpl/bbf
---

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-05-18 15:48:21 +02:00
Omar Kallel
8473242c46 Ticket refs #2584: TR-181: Device.LANConfigSecurity. object 2020-05-18 12:01:26 +01:00
Amin Ben Ramdhane
85b5f603b5 Ticket refs#2585: TR-181: Device.InterfaceStack. object 2020-05-18 10:15:07 +01:00
Amin Ben Ramdhane
6acb70c71c Ticket refs #2582: libbbf: add support for handling macvlan interfaces 2020-05-17 16:18:42 +01:00
Amin Ben Ramdhane
4354aa2117 Ticket refs #2511: libbbf: JSON schema support for Alias and Link 2020-05-17 15:33:52 +01:00
Amin Ben Ramdhane
80652051f5 Ticket refs#2538: TR-181: Device.Hosts.Host.{i}.InterfaceType is missing 2020-05-12 16:39:12 +01:00
Amin Ben Ramdhane
7250cbd1e9 X_<VENDOR>_WiFiLife: remove it from bbf
From now, X_<VENDOR>_WiFiLife object will be added by wifilife package
2020-05-12 16:37:36 +01:00
Amin Ben Ramdhane
3dd66344b3 Ticket refs #2511: libbbf: JSON schema support for Alias and Link 2020-05-12 00:59:17 +01:00
Amin Ben Ramdhane
04deea2605 Update mappings of some parameters 2020-05-12 00:56:45 +01:00
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