mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
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.
|
||
|---|---|---|
| .. | ||
| dmbbf.c | ||
| dmbbf.h | ||
| dmcommon.c | ||
| dmcommon.h | ||
| dmjson.c | ||
| dmjson.h | ||
| dmmem.c | ||
| dmmem.h | ||
| dmubus.c | ||
| dmubus.h | ||
| dmuci.c | ||
| dmuci.h | ||