lib/stp.c
/* Returns the bridge ID of the bridge currently believed to be the root. */
Returns the bridge ID of the bridge currently believed to be the root.
Returns the bridge ID of the bridge currently believed to be the root .
stp_identifier
stp_get_designated_root(const struct stp *stp)
{
    stp_identifier designated_root;
    ovs_mutex_lock(&mutex);
    designated_root = stp->designated_root;
    ovs_mutex_unlock(&mutex);
    return designated_root;
}
stp_identifier stp_get_designated_root ( const struct stp * stp ) { stp_identifier designated_root ; ovs_mutex_lock ( & mutex ) ; designated_root = stp -> designated_root ; ovs_mutex_unlock ( & mutex ) ; return designated_root ; }
Returns the bridge ID of the bridge currently believed to be the root.
Returns the bridge ID of the bridge currently believed to be the root .