X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fcfm.h;h=a031ab225b98e8285dc68741a2690c07481fbd78;hb=e23ae585275dfa76de50b698754b2066cc944e01;hp=85e9ddbf4f9c381dd6b08f8bc82509959dcea754;hpb=c0a2e71d110ad2af474232e03ea9ad94cbbae46f;p=sliver-openvswitch.git diff --git a/lib/cfm.h b/lib/cfm.h index 85e9ddbf4..a031ab225 100644 --- a/lib/cfm.h +++ b/lib/cfm.h @@ -25,24 +25,23 @@ struct flow; struct ofpbuf; struct cfm_settings { - uint16_t mpid; /* The MPID of this CFM. */ + uint64_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'. */ + bool extended; /* Run in extended mode. */ }; 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 *); void cfm_compose_ccm(struct cfm *, struct ofpbuf *packet, uint8_t eth_src[6]); void cfm_wait(struct cfm *); bool cfm_configure(struct cfm *, const struct cfm_settings *); -bool cfm_should_process_flow(const struct flow *); +bool cfm_should_process_flow(const struct cfm *cfm, const struct flow *); void cfm_process_heartbeat(struct cfm *, const struct ofpbuf *packet); bool cfm_get_fault(const struct cfm *); +void cfm_get_remote_mpids(const struct cfm *, const uint64_t **rmps, + size_t *n_rmps); #endif /* cfm.h */