X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcfm.h;h=5106a51b90b435bcedf23dad891ef5350ba45f32;hb=5b909cbb3485c209c2fad9d4b6cac447f4c77f40;hp=a031ab225b98e8285dc68741a2690c07481fbd78;hpb=1de11730e612b09e28892880c2845185497a3741;p=openvswitch diff --git a/lib/cfm.h b/lib/cfm.h index a031ab22..5106a51b 100644 --- a/lib/cfm.h +++ b/lib/cfm.h @@ -28,6 +28,9 @@ 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. */ + uint8_t ccm_pcp; /* CCM Priority. Zero if none. */ }; void cfm_init(void); @@ -41,6 +44,7 @@ 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);