return rc->last_connected;
}
+/* Returns the time at which the last OpenFlow message was received by 'rc'.
+ * If no packets have been received on 'rc', returns the time at which 'rc'
+ * was created. */
+time_t
+rconn_get_last_received(const struct rconn *rc)
+{
+ return rc->last_received;
+}
+
/* Returns the time at which 'rc' was created. */
time_t
rconn_get_creation_time(const struct rconn *rc)
unsigned int rconn_get_attempted_connections(const struct rconn *);
unsigned int rconn_get_successful_connections(const struct rconn *);
time_t rconn_get_last_connection(const struct rconn *);
+time_t rconn_get_last_received(const struct rconn *);
time_t rconn_get_creation_time(const struct rconn *);
unsigned long int rconn_get_total_time_connected(const struct rconn *);
int rconn_get_backoff(const struct rconn *);
rconn_get_successful_connections(rconn));
status_reply_put(sr, "last-connection=%ld",
(long int) (now - rconn_get_last_connection(rconn)));
+ status_reply_put(sr, "last-received=%ld",
+ (long int) (now - rconn_get_last_received(rconn)));
status_reply_put(sr, "time-connected=%lu",
rconn_get_total_time_connected(rconn));
status_reply_put(sr, "state-elapsed=%u", rconn_get_state_elapsed(rconn));