X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstp.h;h=c0175cdbf36752d69c04adb67f005d7065397cb4;hb=28c5588e8e1a8d091c5d2275232c35f2968a97fa;hp=524b9dcf159ab3472b501a8281a2b85e7678d52f;hpb=e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e;p=sliver-openvswitch.git diff --git a/lib/stp.h b/lib/stp.h index 524b9dcf1..c0175cdbf 100644 --- a/lib/stp.h +++ b/lib/stp.h @@ -60,7 +60,8 @@ struct stp *stp_create(const char *name, stp_identifier bridge_id, void (*send_bpdu)(struct ofpbuf *bpdu, int port_no, void *aux), void *aux); -void stp_destroy(struct stp *); +struct stp *stp_ref(const struct stp *); +void stp_unref(struct stp *); void stp_tick(struct stp *, int ms); void stp_set_bridge_id(struct stp *, stp_identifier bridge_id); void stp_set_bridge_priority(struct stp *, uint16_t new_priority); @@ -119,6 +120,7 @@ enum stp_state { const char *stp_state_name(enum stp_state); bool stp_forward_in_state(enum stp_state); bool stp_learn_in_state(enum stp_state); +bool stp_listen_in_state(enum stp_state); /* Role of an STP port. */ enum stp_role {