1926
1926
online_check_state->interval++;
1931
* Handle the successful completion of an "online" HTTP-based
1932
* Internet reachability check for the specified network service
1933
* and IP configuration type.
1935
* This handles the completion of a successful "online" HTTP-based
1936
* Internet reachability check for the specified network service and
1937
* IP configuration type. This effectively "bookends" an earlier
1938
* #__connman_service_wispr_start.
1940
* @param[in,out] service A pointer to the mutable service
1941
* for which to handle a
1942
* successful previously-requested
1944
* @param[in] type The IP configuration type for
1945
* which to handle a successful
1946
* previously-requested online
1948
* @param[in,out] online_check_state A pointer to the online check
1949
* state for @a service
1950
* associated with @a type.
1951
* @param[in] oneshot A Boolean indicating whether the
1952
* online check mode is
1953
* "one-shot" (true) or
1954
* "continuous" (false).
1957
* True if another online check should be scheduled; otherwise,
1960
* @sa handle_online_check_failure
1929
1963
static bool handle_online_check_success(struct connman_service *service,
1930
1964
enum connman_ipconfig_type type,
1931
1965
struct online_check_state *online_check_state,
1950
1984
return reschedule;
1989
* Handle the failed completion of an "online" HTTP-based
1990
* Internet reachability check for the specified network service
1991
* and IP configuration type.
1993
* This handles the completion of a failed "online" HTTP-based
1994
* Internet reachability check for the specified network service and
1995
* IP configuration type. This effectively "bookends" an earlier
1996
* #__connman_service_wispr_start.
1998
* @param[in,out] service A pointer to the mutable service
1999
* for which to handle a
2000
* failed previously-requested
2002
* @param[in] type The IP configuration type for
2003
* which to handle a failed
2004
* previously-requested online
2006
* @param[in] ipconfig_state The current @a type IP
2007
* configuration state for @a
2009
* @param[in,out] online_check_state A pointer to the online check
2010
* state for @a service
2011
* associated with @a type.
2012
* @param[in] oneshot A Boolean indicating whether the
2013
* online check mode is
2014
* "one-shot" (true) or
2015
* "continuous" (false).
2016
* @param[in] err The error status associated with
2017
* the failed previously-requested
2018
* online check. This is expected
2019
* to be less than zero ('< 0').
2022
* True if another online check should be scheduled; otherwise,
2025
* @sa handle_online_check_success
1953
2028
static bool handle_online_check_failure(struct connman_service *service,
1954
2029
enum connman_ipconfig_type type,
1955
2030
enum connman_service_state ipconfig_state,