aboutsummaryrefslogtreecommitdiff
path: root/ofproto/ofproto.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-03-06 14:47:11 -0800
committerBen Pfaff <blp@nicira.com>2013-03-06 16:23:27 -0800
commit18637fdc2e3279240b61eef5162aaff159e766d0 (patch)
tree7b7b0263731ebcb84c00ae8639a2fa6af51dc526 /ofproto/ofproto.h
parent29a5df0ae41eb7cf6393a0f23cc51c2d3fbe69f1 (diff)
bridge: Fix remote_opstate bug recently introduced.
Commit 9a9e3786b3a8 (ofproto: Merge all the CFM query functions into one.) mistakenly transformed a tristate variable into a Boolean one. This commit fixes the problem. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'ofproto/ofproto.h')
-rw-r--r--ofproto/ofproto.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h
index a3c52b5e..3ea56df5 100644
--- a/ofproto/ofproto.h
+++ b/ofproto/ofproto.h
@@ -363,9 +363,14 @@ void ofproto_free_ofproto_controller_info(struct shash *);
/* CFM status query. */
struct ofproto_cfm_status {
enum cfm_fault_reason faults; /* 0 if not faulted. */
- bool remote_opstate; /* True if remote CFM endpoint is up. */
int health; /* Health status in [0,100] range. */
+ /* 0 if the remote CFM endpoint is operationally down,
+ * 1 if the remote CFM endpoint is operationally up,
+ * -1 if we don't know because the remote CFM endpoint is not in extended
+ * mode. */
+ int remote_opstate;
+
/* MPIDs of remote maintenance points whose CCMs have been received. */
const uint64_t *rmps;
size_t n_rmps;