bbfdm/libbbf_api
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
..
dmbbf.c Revert "change strcat->strncat" 2020-04-22 10:08:39 +02:00
dmbbf.h VLANTermination: remove vlan_method option 2020-03-25 16:18:57 +01:00
dmcommon.c bbf: add support for the new IGMP vendor extension 2020-04-28 11:31:31 +05:30
dmcommon.h bbf: add support for the new IGMP vendor extension 2020-04-28 11:31:31 +05:30
dmjson.c Revert "change strcat->strncat" 2020-04-22 10:08:39 +02:00
dmjson.h tr181: wifi: fix invalid SSID stats 2020-02-19 11:53:48 +01:00
dmmem.c dmasprintf: check negatif size case 2020-04-14 10:00:05 +01:00
dmmem.h clean up the source code 2020-02-12 19:08:49 +01:00
dmubus.c dmubus: added handling for integer arguments 2020-03-28 19:44:07 +01:00
dmubus.h Ticket refs #1254: TR-x69: add support for parameter validation 2020-02-20 23:25:49 +01:00
dmuci.c Fix compiler errors on x86 environment 2020-04-12 17:58:39 +01:00
dmuci.h Ticket refs#2344: TR-181: Correct implementation of Device.Ethernet.VLANTermination 2020-04-08 21:51:23 +01:00