Commit graph

1416 commits

Author SHA1 Message Date
suvendhu
5cb85ba5b6 Fix string operations 2022-07-14 16:07:00 +05:30
Suvendhu Hansa
cbfff1b644 Fix error handling in rpc 2022-07-14 09:42:27 +00:00
vdutta
59e462b9fd Fix uci read after update 2022-07-14 11:00:17 +05:30
suvendhu
87cfd68e8d Fix icwmpd infinite restarts 2022-07-13 08:44:18 +05:30
vdutta
3e7db6fd97 Fix segfault when process exits without calling mxml apis 2022-07-12 09:17:38 +05:30
Omar Kallel
2823326027 Consider the Inform RPC ACS method always supported by the ACS 2022-07-06 15:29:10 +01:00
Suvendhu Hansa
4d59758b7b Fix connection req handling 2022-06-29 15:20:26 +00:00
Amin Ben Ramdhane
3ddb80f5fc Add HTTPS documentation 2022-06-28 10:41:15 +01:00
suvendhu
887c2db3e1 fix functional test and improvements 2022-06-23 11:35:10 +05:30
suvendhu
ea2e94fea0 update uci schema to add enable parameter 2022-06-21 19:59:02 +05:30
vdutta
13841eac51 Fix ValueChange event for ConnectionReqURL 2022-06-14 17:19:25 +05:30
Suvendhu Hansa
94e27976a8 Handle interface reset at session end 2022-06-14 09:34:17 +00:00
vdutta
e18acd99d7 Fix random failures in module test 2022-06-13 16:45:23 +05:30
suvendhu
23e16013be T#8134: ACS connectivity issue after bootup 2022-06-10 11:00:51 +00:00
vdutta
a3be4dd092 Use openssl compatibility layer for wolfssl variant 2022-06-07 19:47:36 +05:30
Vivek Kumar Dutta
5f5bdd6e13 Fix compilation warning on gcc-11 2022-06-06 13:33:00 +00:00
Vivek Kumar Dutta
4afa1973bc Revert "Continue session in case GetRPCMethods failing"
This reverts commit 643af329ff
2022-06-03 04:00:42 +00:00
vdutta
64b3e93f1c Fix compilation issues with gcc11 2022-06-01 12:50:19 +00:00
Omar Kallel
643af329ff Continue session in case GetRPCMethods failing 2022-05-31 17:18:48 +01:00
vdutta
617f537109 Fix update interface 2022-05-25 18:59:34 +05:30
Omar Kallel
491957b998 Ticket refs #7896: icwmp: Implement Heartbeat event 2022-05-23 13:06:35 +00:00
Dominic Lake
712cb443c1 Fix icwmpd ubus reload
After refactoring, the icwmpd code no longer allocates the UCI context
in the ubus thread so when it attempts to reload the config, the UCI
calls fail and the reload fails.

Update ubus_utils.c to call init before reloading the config and call
exit once reloaded.
2022-05-23 10:32:24 +00:00
vdutta
12f1921f15 Fix random crash 2022-05-19 22:44:44 +05:30
Dominic Lake
4d158e13b6 fix-wan-interface: fix CWMP bind interface
A ubus call is made for:
```
ubus call network.status '{"interface": "wan"}'
```

Where interface is retrieved from: `cwmp.cpe.default_wan_interface`

However, currently "device" is being used as the interface to bind to
but this is the raw device which only works if a L3 device hasn't been
created over the top - i.e for PPP.

Therefore pull L3 device instead, i.e:
```
"l3_device": "pppoe-wan", # <-- this is the one to use
"device": "eth0.1",
```

this also works when the WAN type is DHCP:
```
"l3_device": "eth0.1",
"device": "eth0.1",
"proto": "dhcp",
```
2022-05-12 14:35:43 +01:00
suvendhu
00d037ce85 HTTP auth code cleanup 2022-05-09 16:06:01 +05:30
suvendhu
20e8be761b code reorganize 2022-05-05 11:49:55 +00:00
vdutta
f1acf462dc Added safe checks for ubus commands 2022-05-05 14:58:25 +05:30
suvendhu
810539def8 Code cleanup and optimize 2022-05-02 20:07:23 +05:30
suvendhu
45dd9c22d2 T#7935 All devices send inform at same time with unknown periodic inform time 2022-05-02 13:07:49 +05:30
Amin Ben Ramdhane
8449a419a8 Remove unused file and macros 2022-04-29 12:51:00 +01:00
Amin Ben Ramdhane
a695e0d2cd Use common function to get time 2022-04-29 11:58:22 +01:00
Amin Ben Ramdhane
673600fd3d Remove unused file 2022-04-27 13:17:11 +01:00
Amin Ben Ramdhane
ed13523ebe Use Openssl, mbedtls md5 APIs instead of local functions 2022-04-27 13:16:25 +01:00
Omar Kallel
f7c42eaba6 CPE requests for GetRPCMethods ACS after each successfule Inform 2022-04-25 16:19:55 +01:00
Omar Kallel
8e6bde511a Make Upload with SSL 2022-04-21 09:25:51 +01:00
Omar Kallel
a8463946f3 icwmp: Switch to mxml for xml parsing 2022-04-18 16:54:25 +01:00
vdutta
7f70801afa Fix compilation warnings 2022-04-12 11:18:17 +05:30
Amin Ben Ramdhane
5d1317aac8 Add support for libmbedtls 2022-04-08 09:32:40 +00:00
vdutta
e12c739d30 Custom notify json update
- Logic updated to handle power reset while importing the custom notify json
- Import of custom notify parameters only marked as successful, after a
  successful backup by init script. This logic has an external dependency on
  init script, as the init script is responsible for backup of updated configs
  during the reboots.
2022-04-07 16:21:45 +05:30
Vivek Kumar Dutta
e3d43fb450 Fix upload test 2022-04-05 12:05:54 +00:00
vdutta
7fbc6f939d Fix compilation issue 2022-03-31 13:31:04 +00:00
suvendhu
8a057ca1f5 Fix transfer_complete event after vendor config download 2022-03-31 11:35:45 +00:00
Amin Ben Ramdhane
0a6d7f6ab4 ignore get value error for some objects
- Device.DeviceInfo.ProcessStatus.Process.
 - Device.Hosts.Host
2022-03-31 10:54:56 +00:00
Omar Kallel
c25f92e9d1 Ticket refs #7602: icwmp: align with swmodd ubus methods updates 2022-03-30 12:16:23 +00:00
vdutta
adc551c768 Updated Readme 2022-03-23 18:30:39 +05:30
vdutta
4dd933047d Updated compile flag 2022-03-11 12:36:55 +05:30
Omar Kallel
8fe0cf54ea Ticket refs #7501: icwmp: Fix static code warnings with cppcheck-2.7 2022-03-09 09:08:06 +01:00
Omar Kallel
11b4339fc3 Fix uci issue when reloading the connection interface 2022-03-07 15:04:48 +01:00
Omar Kallel
8df8a9a6a0 Ticket refs #7512: icwmpd: Connect imediatly on wan up
(cherry picked from commit d5dd79101ab7b680644678a6862d6cbc213330b0)

(cherry picked from commit 9815275e6a0537540905862fb9393570c507e8f1)
2022-03-07 06:13:41 +00:00
suvendhu
cc1763399c Fixed Flawfinder Errors
(cherry picked from commit 2649eca7dd5a25cc04da30525a39bc9bd058fe92)
2022-03-04 10:49:15 +00:00