diff mbox series

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

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

Commit Message

Grant Erickson Dec. 21, 2023, 10:34 p.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 {