Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
easycwmp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
easycwmp
Commits
9d88763b
Commit
9d88763b
authored
Apr 13, 2021
by
Vladimir Bashkirtsev
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Periodic inform should be disabled when we are in the active session
parent
e5fd0ab8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
Makefile
Makefile
+1
-0
easycwmp-1.8.1-suppress_periodic_in_session.patch
easycwmp-1.8.1-suppress_periodic_in_session.patch
+30
-0
No files found.
Makefile
View file @
9d88763b
all
:
easycwmp-service device-info easycwmp-config
all
:
easycwmp-service device-info easycwmp-config
tar
xf EasyCwmp-1.8.1.tar.gz
tar
xf EasyCwmp-1.8.1.tar.gz
patch
-Np1
-d
easycwmp-EasyCwmp-1.8.1 < easycwmp-1.8.1-blank_device.patch
patch
-Np1
-d
easycwmp-EasyCwmp-1.8.1 < easycwmp-1.8.1-blank_device.patch
patch
-Np1
-d
easycwmp-EasyCwmp-1.8.1 < easycwmp-1.8.1-suppress_periodic_in_session.patch
cd
easycwmp-EasyCwmp-1.8.1
&&
autoreconf
-i
cd
easycwmp-EasyCwmp-1.8.1
&&
autoreconf
-i
cd
easycwmp-EasyCwmp-1.8.1
&&
./configure
--prefix
=
/usr
--enable-jsonc
=
1
cd
easycwmp-EasyCwmp-1.8.1
&&
./configure
--prefix
=
/usr
--enable-jsonc
=
1
$(MAKE)
-C
easycwmp-EasyCwmp-1.8.1
$(MAKE)
-C
easycwmp-EasyCwmp-1.8.1
...
...
easycwmp-1.8.1-suppress_periodic_in_session.patch
0 → 100644
View file @
9d88763b
diff -uNr easycwmp-EasyCwmp-1.8.1/src/cwmp.c easycwmp-EasyCwmp-1.8.1-suppress_periodic_in_session/src/cwmp.c
--- easycwmp-EasyCwmp-1.8.1/src/cwmp.c 2019-06-24 19:29:07.000000000 +0930
+++ easycwmp-EasyCwmp-1.8.1-suppress_periodic_in_session/src/cwmp.c 2021-04-13 23:18:25.853983606 +0930
@@ -269,6 +269,10 @@
{
mxml_node_t *node;
int method_id;
+ bool periodic_enabled;
+
+ periodic_enabled = config->acs->periodic_enable;
+ config->acs->periodic_enable = false;
log_message(NAME, L_NOTICE, "start session\n");
if (http_client_init()) {
@@ -325,6 +329,7 @@
external_exit();
cwmp->retry_count = 0;
log_message(NAME, L_NOTICE, "end session success\n");
+ config->acs->periodic_enable = periodic_enable;
return 0;
error:
@@ -335,6 +340,7 @@
log_message(NAME, L_NOTICE, "end session failed\n");
cwmp_retry_session();
+ config->acs->periodic_enable = periodic_enable;
return -1;
}
Vladimir Bashkirtsev
@mega
mentioned in commit
25312e52
·
Mar 29, 2024
mentioned in commit
25312e52
mentioned in commit 25312e52c7234a9cb3d7d9e55944b4247faeb2a8
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment