aboutsummaryrefslogtreecommitdiff
path: root/lib/stream.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-04-18 16:37:05 -0700
committerBen Pfaff <blp@nicira.com>2013-04-18 16:43:15 -0700
commit798e1352d09bc48d1eecb6ecf1b2c21d9b1ba2a5 (patch)
tree5cea6af0be1a821744eb8e8f6ac834ee5ea23ce2 /lib/stream.h
parent1e04fcc879ea09bb8c7512cda6de91f7725627f6 (diff)
ovsdb-server: Announce bound listening ports as status:bound_port.
The administrator can request that OVSDB bind any available TCP port, but in that case there is no easy way to find out what port it has bound. This commit adds that information as the "bound_port" key in the "status" column. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/stream.h')
-rw-r--r--lib/stream.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/stream.h b/lib/stream.h
index d2f2ebb7..aa3fa9d4 100644
--- a/lib/stream.h
+++ b/lib/stream.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010, 2011 Nicira, Inc.
+ * Copyright (c) 2009, 2010, 2011, 2013 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -66,6 +66,8 @@ int pstream_accept(struct pstream *, struct stream **);
int pstream_accept_block(struct pstream *, struct stream **);
void pstream_wait(struct pstream *);
int pstream_set_dscp(struct pstream *, uint8_t dscp);
+
+ovs_be16 pstream_get_bound_port(const struct pstream *);
/* Convenience functions. */