Commit graph

56 commits

Author SHA1 Message Date
suvendhu
efbae1c8c2 Fix store session backup 2023-03-29 15:32:18 +05:30
Omar Kallel
84074d23fb B#10122: Fix VendorConfig file download 2023-03-08 16:01:57 +00:00
vdutta
0ddc0df71d Wait before exit, when reboot or factory reset called 2023-02-15 14:50:16 +05:30
Suvendhu Hansa
9ee5a5a95a Remove mutex for uci operation 2023-01-31 13:55:13 +00:00
Vivek Kumar Dutta
24984b7cd7 Updated notification handling 2023-01-27 10:53:45 +00:00
Omar Kallel
8d4e865dd3 Check NULL pointer before string and memory functions calls 2022-09-26 09:45:55 +01:00
Omar Kallel
21c3792ba4 Check NULL pointer for Common/CWMP/HTTP 2022-09-20 16:52:24 +01:00
suvendhu
87cfd68e8d Fix icwmpd infinite restarts 2022-07-13 08:44:18 +05:30
suvendhu
23e16013be T#8134: ACS connectivity issue after bootup 2022-06-10 11:00:51 +00:00
vdutta
617f537109 Fix update interface 2022-05-25 18:59:34 +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
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
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
8fe0cf54ea Ticket refs #7501: icwmp: Fix static code warnings with cppcheck-2.7 2022-03-09 09:08:06 +01:00
suvendhu
cc1763399c Fixed Flawfinder Errors
(cherry picked from commit 2649eca7dd5a25cc04da30525a39bc9bd058fe92)
2022-03-04 10:49:15 +00:00
Vivek Kumar Dutta
da88c8c286 Fix probable crashes 2022-02-11 15:41:34 +00:00
vdutta
d18400eca5 General improvement for firewall restart handling 2021-12-22 15:31:09 +05:30
vdutta
00e48a5943 Fix compilation warnings 2021-12-13 16:02:30 +05:30
vdutta
3ed2abf918 Remove manual seeding of openssl RAND generator 2021-12-07 17:09:48 +05:30
Omar Kallel
1e5c96de22 Fix digest authentication issue 2021-12-06 15:38:50 +00:00
Neeraj Bijalwan
7a9643c94b Ticket refs #6533: icwmp: Replace insecure rand with openssl random generator 2021-12-02 13:34:36 +01:00
Omar Kallel
4bef706ddf Ticket refs #6614: icwmp: fix static code anlysis issues generated by cpp check 2021-11-22 15:27:44 +01:00
Omar Kallel
0aa8c57c41 Ticket refs #6359: icwmp: Reduce I/O on filesystem 2021-11-09 16:16:11 +01:00
vdutta
be6a004224 Compensate for firewall restart delays 2021-10-29 15:47:29 +05:30
Omar Kallel
dd51b8e770 Update year in head comment 2021-10-13 16:20:18 +01:00
Omar Kallel
ab87527757 Ticket refs #6039: icwmp: enhancement of uci api 2021-10-05 14:34:22 +01:00
Omar Kallel
e44f826d54 Ticket refs #6065: icwmpd weak entropy 2021-09-21 09:49:30 +01:00
Omar Kallel
db97f2d1d7 Ticket refs #5596: Icwmp improvement - Firewall entry 2021-09-17 11:01:10 +01:00
Omar Kallel
b19742dc89 Make custom notifications custom forced inform and boot inform parameters in 3 separated files 2021-08-30 14:54:07 +01:00
Omar Kallel
4edfade24c Ticket refs #5515: icwmp: validation of RPC methods arguments 2021-07-01 18:42:21 +01:00
Amin Ben Ramdhane
a9f72148e2 exit icwmp properly when catching a signal 2021-06-24 09:10:03 +01:00
vdutta
24977815fe Fix delay in notify 2021-06-17 15:41:07 +01:00
Omar Kallel
32246cad8d Ticket refs #5366: icwmp: fix transaction issue in case there are multiple RPC calls in one session 2021-06-17 15:40:59 +01:00
Omar Kallel
b1899234ef Fix x86 compilation error 2021-06-11 08:34:33 +01:00
Amin Ben Ramdhane
70dc5c2bba Fixed a segfault error when initiating a new session 2021-06-08 13:38:14 +01:00
Omar Kallel
16659d7c16 Ticket refs #5041: cwmp: In DownloadRPC add support for '6 Stored Firmware Image' type 2021-06-04 14:49:59 +01:00
Omar Kallel
f73a82a126 Ticket refs #4935: icwmp: make all free of dynamic memory allocations (malloc, calloc, asprintf, strdup) in the end session 2021-06-04 14:49:28 +01:00
Omar Kallel
53d5b0503a Ticket refs #3988: icwmpd: Unit Test of Data Model Interface and SOAP messages 2021-05-19 17:32:29 +01:00
Omar Kallel
218ee7fbc7 code enhancements and arrangement: session download upload scheduleInform changedustate 2021-05-18 12:34:29 +01:00
vdutta
e6586067f9 Revert ubus -s changes 2021-05-17 19:27:51 +05:30
Vivek Kumar Dutta
681758c1b7 Align with latest ubus 2021-05-14 06:27:57 +00:00
Omar Kallel
f5ac401208 Ticket refs #3731: icwmpd: Static Code Analysis (flawfinder) 2021-04-20 17:23:04 +01:00
Omar Kallel
5b24edae8f Ticket #4712: icwmp: convert icwmp.sh script to a C code 2021-04-15 10:57:37 +01:00
Omar Kallel
5a4e7a0cfb Ticket refs #4423: icwmpd: icwmpd leaks memory 2021-03-23 13:36:35 +01:00
Omar Kallel
0652f760cd Fix db get of deviceid uci options 2021-01-19 17:26:57 +01:00
Omar Kallel
fc7687de2d Make icwmp compiling under x86 2021-01-19 17:26:46 +01:00
Omar Kallel
bf90808bbd Revert "Fiw flawfinder errors"
This reverts commit 416c954c21.
2021-01-06 14:07:42 +01:00