diff options
author | Ethan Jackson <ethan@nicira.com> | 2011-05-23 16:05:41 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2011-05-24 15:25:53 -0700 |
commit | 6f629657feeb5cfa05c17557870b5c32bdc3aec8 (patch) | |
tree | f72af4b29e2174a198a9cbda08be441e63099c31 /lib/cfm.h | |
parent | da37ebac7ab40ad6f9fe78ff1d218c43957f69e8 (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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 *); |