/* Marks an iface as ready or unready and updates all associated state tracking.  */
static void conn_mgr_mon_set_ready(int idx, bool readiness)
/* Marks an iface as ready or unready and updates all associated state tracking.  */
static void conn_mgr_mon_set_ready(int idx, bool readiness)
{
	iface_states[idx] &= ~CONN_MGR_IF_READY;
	if (readiness) {
		iface_states[idx] |= CONN_MGR_IF_READY;
		ready_count += 1;
		last_iface_up = conn_mgr_mon_get_if_by_index(idx);
	} else {
		ready_count -= 1;
		last_iface_down = conn_mgr_mon_get_if_by_index(idx);
	}
}