X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Frconn.h;h=23976409ebaa31924490985a2b7bc9313b61ee92;hb=e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e;hp=47b211b29d41adb3094a14b7cdb6da768a769f49;hpb=b3907fbc6c74ddad7507d0f7abb1f5a2528cd2be;p=sliver-openvswitch.git diff --git a/lib/rconn.h b/lib/rconn.h index 47b211b29..23976409e 100644 --- a/lib/rconn.h +++ b/lib/rconn.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ #include #include #include +#include "openvswitch/types.h" /* A wrapper around vconn that provides queuing and optionally reliability. * @@ -36,8 +37,9 @@ struct vconn; struct rconn_packet_counter; -struct rconn *rconn_create(int inactivity_probe_interval, int max_backoff); - +struct rconn *rconn_create(int inactivity_probe_interval, + int max_backoff, uint8_t dscp); +void rconn_set_dscp(struct rconn *rc, uint8_t dscp); void rconn_set_max_backoff(struct rconn *, int max_backoff); int rconn_get_max_backoff(const struct rconn *); void rconn_set_probe_interval(struct rconn *, int inactivity_probe_interval); @@ -70,17 +72,18 @@ bool rconn_is_alive(const struct rconn *); bool rconn_is_connected(const struct rconn *); bool rconn_is_admitted(const struct rconn *); int rconn_failure_duration(const struct rconn *); -bool rconn_is_connectivity_questionable(struct rconn *); -uint32_t rconn_get_remote_ip(const struct rconn *); -uint16_t rconn_get_remote_port(const struct rconn *); -uint32_t rconn_get_local_ip(const struct rconn *); -uint16_t rconn_get_local_port(const struct rconn *); +ovs_be32 rconn_get_remote_ip(const struct rconn *); +ovs_be16 rconn_get_remote_port(const struct rconn *); +ovs_be32 rconn_get_local_ip(const struct rconn *); +ovs_be16 rconn_get_local_port(const struct rconn *); +int rconn_get_version(const struct rconn *); const char *rconn_get_state(const struct rconn *); 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_disconnect(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 *);