aboutsummaryrefslogtreecommitdiff
path: root/lib/vconn.h
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2009-07-06 15:15:11 -0700
committerJustin Pettit <jpettit@nicira.com>2009-07-08 11:19:51 -0700
commit193456d581423f894e57e8463ff5049c0d802f0a (patch)
tree0649f9e6300bb00b86c6d84ce9a7c9827fecf726 /lib/vconn.h
parentab9c78ff5099e6c45166b47202741b4071176ba3 (diff)
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/vconn.h')
-rw-r--r--lib/vconn.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/vconn.h b/lib/vconn.h
index b94eeb3c..9e012bcf 100644
--- a/lib/vconn.h
+++ b/lib/vconn.h
@@ -38,7 +38,10 @@ void vconn_usage(bool active, bool passive, bool bootstrap);
int vconn_open(const char *name, int min_version, struct vconn **);
void vconn_close(struct vconn *);
const char *vconn_get_name(const struct vconn *);
-uint32_t vconn_get_ip(const struct vconn *);
+uint32_t vconn_get_remote_ip(const struct vconn *);
+uint16_t vconn_get_remote_port(const struct vconn *);
+uint32_t vconn_get_local_ip(const struct vconn *);
+uint16_t vconn_get_local_port(const struct vconn *);
int vconn_connect(struct vconn *);
int vconn_recv(struct vconn *, struct ofpbuf **);
int vconn_send(struct vconn *, struct ofpbuf *);