X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcfm.h;h=334b80c0ef20fe2e868ae1d7ae34d7179b67e757;hb=8b36f51e0fdeb468058e4552858af03851b4fad3;hp=86d62d7601cebae12c24cfef5d4f47b595d73ce1;hpb=348f01e3e36b67f86ac2f9f90c7574d9e1b85d73;p=openvswitch diff --git a/lib/cfm.h b/lib/cfm.h index 86d62d76..334b80c0 100644 --- a/lib/cfm.h +++ b/lib/cfm.h @@ -28,6 +28,8 @@ struct cfm_settings { 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); @@ -41,5 +43,8 @@ bool cfm_configure(struct cfm *, const struct cfm_settings *); 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 */