Jomily K Joseph
26c684593c
bbf : #3969 TR-181: Add Device.Bridging.ProviderBridge.{i} support (REBASE)
...
- Add support for provider bridge on devel
2021-01-17 17:05:59 +00:00
Amin Ben Ramdhane
764fff3088
Device.DHCPv4.Relay.Forwarding.{i}.: Improve browse function
2021-01-11 12:08:47 +01:00
Amin Ben Ramdhane
eef08e0770
bbf: remove the call to icwmp shell script
2021-01-04 10:22:12 +01:00
Omar Kallel
e73024d706
remove the use of dm_enabled_notify file && other cleanup
2020-12-17 12:34:34 +01:00
Amin Ben Ramdhane
b9a12b057b
remove tr064 feature and cleanup
2020-12-16 10:03:25 +01:00
Amin Ben Ramdhane
3906faa12d
Ticket refs #3730 : bbf: fix Static Code Analysis
2020-12-16 10:00:19 +01:00
Amin Ben Ramdhane
5d10fba083
bbf: improve and cleanup the code
...
- update_instance_alias: read config and type section from the passed section in handle_update_instance
- remove append_dot_to_string() function
2020-12-06 22:18:18 +01:00
Amin Ben Ramdhane
026b527588
DHCPv4: fix some issues under DHCPv4.Server.Pool. object and enhance the code
...
- Fix get/set of LeaseTime, StaticAddressNumberOfEntries parameters
- Fix an issue in add object of DHCPv4.Server.Pool.{i}. object
- enhance get/set of some parameters: Enable, Status, SubnetMask, DomainName, IPRouters. so get the value from data instead of the mapping for all the sections and get the corresponding section based on its section name
2020-12-04 11:36:02 +01:00
Amin Ben Ramdhane
da60243b30
Ticket refs #3629 : TR-181: Device.DHCPv4.Server.Pool.{i}.StaticAddress. implementation has incorrect behavior
...
Fix multiple issues in StaticAddress implementation
- "StaticAddress.{i}.Yiaddr" accepting any IP address -> According to standard, It should accept IP address from DHCP IP pool
- Same IP address can be assigned to multiple MAC address -> According to standard, Once a IP got bind to a MAC, it should not get bind to other MAC
- Able to create multiple entry for same MAC -> According to standard, It should accept only one entry for one MAC
- Able to create multiple object with same Alias -> According to standard, Alias should be unique
2020-11-26 11:06:56 +01:00
Sukru Senli
38e1aef3af
deviceinfo: convert Linux priority to a value between 0 and 99
2020-11-23 11:51:25 +01:00
Amin Ben Ramdhane
18643f29b3
bbf: enhance the code
...
- remove unused argument from dmuci_add_section() and dmuci_add_section_bbfdm() functions
- use snprintf instead of dmasptintf
- change function name: add_list_paramameter -> add_list_parameter
2020-11-23 10:58:48 +01:00
Amin Ben Ramdhane
e24f7bf8ac
Ticket refs #3813 : TR-181: Incorrect implementation of some of Device.DHCPv4.and Device.DHCPv6. objects/parameters
...
Fix Get/Set value of these parameters which has a hexbinary encoded value according to the TR-181 standard
- Device.DHCPv4.Server.Pool.{i}.Option.{i}.Value
- Device.DHCPv4.Client.{i}.SentOption.{i}.Value
- Device.DHCPv4.Relay.Forwarding.{i}.UserClassID
- Device.DHCPv6.Server.Pool.{i}.VendorClassID
- Device.DHCPv6.Server.Pool.{i}.UserClassID
- Device.DHCPv6.Server.Pool.{i}.Option.{i}.Value
2020-11-18 20:02:31 +01:00
Omar Kallel
c8de221c11
Ticket refs #3725 : bbf: remove unnecessary arguments from object/parameter definition
2020-11-17 16:21:11 +01:00
Amin Ben Ramdhane
d1d60dfbe0
Ticket refs #3805 : TR-181: Device.DHCPv4.Server.Pool.{i}.Client.{i}.Option.{i}.
...
- Implement Device.DHCPv4.Server.Pool.{i}.Client.{i}.Option.{i}. object
- Implement Device.DHCPv4.Server.Pool.{i}.Client.{i}.IPv4AddressNumberOfEntries parameter
- Implement Device.DHCPv4.Server.Pool.{i}.Client.{i}.OptionNumberOfEntries parameter
2020-11-17 15:06:42 +01:00
Amin Ben Ramdhane
38bbb5e455
Ticket refs #2920 : TR-181: Device.IP.Interface.{i}. IPv4Address, IPv6Address and IPv6Prefix multi-instance objects are treated as single-instance
2020-11-07 19:12:29 +01:00
Amin Ben Ramdhane
8ba74d624b
bbf: add unique_keys argument to the comment
...
- change (const char *[]) -> LIST_KEY
2020-10-17 14:54:33 +01:00
Amin Ben Ramdhane
c395e8dd51
DHCPv4: fix SentOption segfault issue
...
- Device.DHCPv4.Client.{i}.SentOption.1.Enable : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Tag : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Value : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.: fix add/del segfault issue
2020-10-10 12:46:34 +01:00
Amin Ben Ramdhane
c6602debdd
Revert "DHCPv4: fix segfault issue"
...
This reverts commit 893e27b7f9 .
2020-10-10 12:35:42 +01:00
Amin Ben Ramdhane
893e27b7f9
DHCPv4: fix segfault issue
...
- Device.DHCPv4.Server.Pool.{i}.MaxAddress: fix its value
- Device.DHCPv4.Client.{i}.SentOption.1.Enable : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Tag : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Value : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.ReqOption.: fix add/del segfault issue
2020-10-08 19:19:27 +01:00
Amin Ben Ramdhane
99705ac5f9
bbf: fix compiler warnings
2020-09-03 21:47:26 +01:00
Amin Ben Ramdhane
f9d2c345f1
Ticket refs #2974 : Referenced objects have trailing dot
2020-08-26 11:26:33 +01:00
Omar Kallel
7ec89f485b
Fix InterfaceStack issues: Ethernet.Link, Bridge.x.Port.
2020-08-25 15:31:30 +01:00
Amin Ben Ramdhane
bbecdd7444
Ticket refs #2845 : bbf: add support the case uci config is updated manually
2020-08-22 16:37:32 +01:00
Amin Ben Ramdhane
8bc317df54
bbf: clean mcast
...
- Move missing mcast functions from dmcommon file to mcast file
- Remove extern from function declarations
- Fix some indentation
- Comment unsupported parameters
2020-08-18 14:27:56 +01:00
Ratish
454be64405
igmp stats: Moved the mcast specific function to igmp file and mld file.
2020-08-18 12:07:41 +02:00
Amin Ben Ramdhane
f3c9ed9efd
PPP.Interface.: fix get value of stats parameters
2020-07-07 19:39:08 +01:00
Omar Kallel
856d4de5df
enhance separation between libbbf_api and libbbfdm (functions: dm_update_file_enabled_notify, copy_temporary_file_to_original_file, del_list_fault_param, json functions)
2020-06-23 10:47:57 +01:00
Amin Ben Ramdhane
e4f1fd8653
WiFi: fix get/set value of SupportedFrequencyBands and OperatingFrequencyBand parameters
2020-06-22 16:43:17 +01:00
Amin Ben Ramdhane
efe2ca135b
Device.IP: fix the get/set of IPv4Capable and IPv6Capable parameters
2020-05-31 20:57:52 +01:00
Amin Ben Ramdhane
6ad215b7a6
TR-181: Device.DeviceInfo.Processor. object
2020-05-28 20:17:00 +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
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
15e9323b71
Ticket refs#2494: libbbf: wrong handling of multiple bridging object handling
2020-05-01 18:39:04 +01:00
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
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
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
09048693c7
Ticket refs#2494: bbf: multiple bridging object handling
2020-04-26 13:17:26 +01:00
Amin Ben Ramdhane
67891bd0e4
Fix compiler errors on x86 environment
2020-04-12 17:58:39 +01:00
Amin Ben Ramdhane
cd391b939b
Ticket refs#2344: TR-181: Correct implementation of Device.Ethernet.VLANTermination
2020-04-08 21:51:23 +01:00
Jomily K Joseph
dc554fa385
bbf : Updated some functions and resolved vlan deployment issues.
...
- Fixed issue in Ethernet Link deletion.
- Fixed deletion of untagged interfaces section from UCI.
- Fixed in setting lower layers for Ethernet link in case of untagged management interface.
- Fixed issue of adding same ports with different vlan id under different bridge.
2020-04-01 12:08:39 +02:00
Amin Ben Ramdhane
3589aabbc4
Cleanup + remove unused function and struct + improvement the source code
2020-03-29 14:24:51 +01:00
Jomily K Joseph
fa07b8c3b6
bbf: Layer2 Vlan Deployment changes
...
- Changes done in IP.Interface, Device.Ethernet, Bridging.Bridge objects.
2020-03-25 11:45:10 +01:00
Omar Kallel
a25b8584cb
Fix bugs: Device.WiFi.Radio
2020-03-19 09:45:26 +01:00
Amin Ben Ramdhane
a1f7ce98cf
Ticket refs #1254 : Improvement validation parameters
2020-03-13 16:28:32 +01:00
Daniel Danzberger
43b4cff541
Don't define _XOPEN_SOURCE when compiling with _GNU_SOURCE
...
_XOPEN_SOURCE is included by _GNU_SOURCE.
This fixes redefinition errors of _XOPEN_SOURCE when the libc
implementations define it because of _GNU_SOURCE.
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-03-09 12:25:13 +01:00
Omar Kallel
5b0bc22622
Ticket Refs #1835 : TR-181: Device.Security object
2020-03-03 15:30:08 +01:00
Amin Ben Ramdhane
905d78844c
Ticket refs #1254 : TR-x69: add support for parameter validation
2020-02-20 23:25:49 +01:00
Daniel Danzberger
4ebedcf707
tr181: dhcpv4: fixes and improvements
...
- don't export symbols that are not used ouside of dhcpv4.c
- make read only values const
- remove uneceessary memory allocations and duplications
- avoid "router.network" calls for compatibitliy with generic openwrt builds
- move redundand code to functions
- remove tab indents on empty lines
- avoid opening and parsing DHCP_LEASE_FILE multiple times
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:53:48 +01:00
Daniel Danzberger
cda2d2a61c
tr181: wifi: fix invalid SSID stats
...
There is not always an "ifname" option in the wifi-iface section.
This commit uses ubus to resolve the right interface for the SSID.
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:53:48 +01:00