lib/stp.c
/* Returns the bridge max age, in ms.  The returned value is not necessarily
 * the value passed to stp_set_max_age(): it is clamped to the valid range,
 * quantized to the STP timer resolution, and adjusted to match the constraints
 * due to the hello time.  */
Returns the bridge max age, in ms.  The returned value is not necessarily
the value passed to stp_set_max_age(): it is clamped to the valid range,
quantized to the STP timer resolution, and adjusted to match the constraints
due to the hello time.
Returns the bridge max age in ms . The returned value is not necessarily the value passed to stp_set_max_age () : it is clamped to the valid range quantized to the STP timer resolution and adjusted to match the constraints due to the hello time .
int
stp_get_max_age(const struct stp *stp)
{
    int time;
    ovs_mutex_lock(&mutex);
    time = timer_to_ms(stp->bridge_max_age);
    ovs_mutex_unlock(&mutex);
    return time;
}
int stp_get_max_age ( const struct stp * stp ) { int time ; ovs_mutex_lock ( & mutex ) ; time = timer_to_ms ( stp -> bridge_max_age ) ; ovs_mutex_unlock ( & mutex ) ; return time ; }
Returns the bridge max age, in ms.
Returns the bridge max age in ms .