diff options
author | Justin Pettit <jpettit@nicira.com> | 2009-07-06 15:15:11 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2009-07-08 11:19:51 -0700 |
commit | 193456d581423f894e57e8463ff5049c0d802f0a (patch) | |
tree | 0649f9e6300bb00b86c6d84ce9a7c9827fecf726 /lib/rconn.h | |
parent | ab9c78ff5099e6c45166b47202741b4071176ba3 (diff) | |
download | openvswitch-193456d581423f894e57e8463ff5049c0d802f0a.tar.gz |
Have rconn and vconn export information about IPs and ports
Previously, rconn and vconn only allowed users to find out about the
remote IP address. This set of changes allows users to retrieve the
remote port, local IP, and local port used for the connection.
Diffstat (limited to 'lib/rconn.h')
-rw-r--r-- | lib/rconn.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rconn.h b/lib/rconn.h index 1249b844f..ed0780a3f 100644 --- a/lib/rconn.h +++ b/lib/rconn.h @@ -72,7 +72,10 @@ bool rconn_is_connected(const struct rconn *); int rconn_failure_duration(const struct rconn *); bool rconn_is_connectivity_questionable(struct rconn *); -uint32_t rconn_get_ip(const 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 *); const char *rconn_get_state(const struct rconn *); unsigned int rconn_get_attempted_connections(const struct rconn *); |