diff mbox series

[v2,18/60] service: Introduce and use online check 'failures/successes' state.

Message ID 20231221064007.2347566-19-gerickson@nuovations.com (mailing list archive)
State Superseded
Headers show
Series Complete 'continuous' Online Check Mode Implementation. | expand

Commit Message

Grant Erickson Dec. 21, 2023, 6:39 a.m. UTC
This introduces a per-IP configuration online check 'failures' and
'successes' state member that represent the number of sustained,
back-to-back "online" reachability check failures and successes,
respectively, for "continuous" online check mode.
---
 src/service.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/src/service.c b/src/service.c
index 2599acd832ce..db1d45f61063 100644
--- a/src/service.c
+++ b/src/service.c
@@ -109,6 +109,8 @@  struct online_check_state {
 	 *
 	 */
 	unsigned int interval;
+	unsigned int successes;
+	unsigned int failures;
 };
 
 struct connman_service {