aboutsummaryrefslogtreecommitdiff
path: root/lib/cfm.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-05-23 16:05:41 -0700
committerEthan Jackson <ethan@nicira.com>2011-05-24 15:25:53 -0700
commit6f629657feeb5cfa05c17557870b5c32bdc3aec8 (patch)
treef72af4b29e2174a198a9cbda08be441e63099c31 /lib/cfm.h
parentda37ebac7ab40ad6f9fe78ff1d218c43957f69e8 (diff)
cfm: Require 'name' field for 'cfm' objects.
This commit also fixes a memory leak upon cfm_destroy() and converts the 'all_cfms' list to a hash map.
Diffstat (limited to 'lib/cfm.h')
-rw-r--r--lib/cfm.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/cfm.h b/lib/cfm.h
index 85e9ddbf..37e158f6 100644
--- a/lib/cfm.h
+++ b/lib/cfm.h
@@ -27,14 +27,13 @@ struct ofpbuf;
struct cfm_settings {
uint16_t mpid; /* The MPID of this CFM. */
int interval; /* The requested transmission interval. */
- const char *name; /* Name of this CFM object. */
const uint16_t *remote_mpids; /* Array of remote MPIDs */
size_t n_remote_mpids; /* Number of MPIDs in 'remote_mpids'. */
};
void cfm_init(void);
-struct cfm *cfm_create(void);
+struct cfm *cfm_create(const char *name);
void cfm_destroy(struct cfm *);
void cfm_run(struct cfm *);
bool cfm_should_send_ccm(struct cfm *);