lib/stp.c
/* Returns true if 'stp' believes itself to the be root of the spanning tree,
 * false otherwise. */
Returns true if 'stp' believes itself to the be root of the spanning tree,
false otherwise.
Returns true if ' stp ' believes itself to the be root of the spanning tree false otherwise .
bool
stp_is_root_bridge(const struct stp *stp)
{
    bool is_root;
    ovs_mutex_lock(&mutex);
    is_root = stp->bridge_id == stp->designated_root;
    ovs_mutex_unlock(&mutex);
    return is_root;
}
bool stp_is_root_bridge ( const struct stp * stp ) { bool is_root ; ovs_mutex_lock ( & mutex ) ; is_root = stp -> bridge_id == stp -> designated_root ; ovs_mutex_unlock ( & mutex ) ; return is_root ; }
Returns true if 'stp' believes itself to the be root of the spanning tree,
 false otherwise.
Returns true if ' stp ' believes itself to the be root of the spanning tree false otherwise .