X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcfm.h;h=334b80c0ef20fe2e868ae1d7ae34d7179b67e757;hb=634408e0c5e9d99b55c40ab4df608f822ef923a7;hp=659077b4779d2a30f90df92e8e3b9b29d273ebde;hpb=144216a3358fc3ddc8a8253dd85978f112cb7bbc;p=openvswitch diff --git a/lib/cfm.h b/lib/cfm.h index 659077b4..334b80c0 100644 --- a/lib/cfm.h +++ b/lib/cfm.h @@ -25,8 +25,11 @@ 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. */ + bool extended; /* Run in extended mode. */ + bool opup; /* Operational State. */ + uint16_t ccm_vlan; /* CCM Vlan tag. Zero if none. */ }; void cfm_init(void); @@ -37,8 +40,11 @@ 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 *); +bool cfm_get_opup(const struct cfm *); +void cfm_get_remote_mpids(const struct cfm *, const uint64_t **rmps, + size_t *n_rmps); #endif /* cfm.h */