static void remote_run(struct datapath *dp, struct remote *r) { remote_rconn_run(dp, r, MAIN_CONNECTION); if (!rconn_is_alive(r->rconn)) { remote_destroy(r); return; } if (r->rconn_aux == NULL || !rconn_is_alive(r->rconn_aux)) return; remote_rconn_run(dp, r, PTIN_CONNECTION); }
bool lswitch_is_alive(const struct lswitch *sw) { return rconn_is_alive(sw->rconn); }