lib/rstp-state-machines.c
/* Times are internally held in seconds, while the protocol uses 1/256 seconds.
 * time_encode() is used to convert time values sent in bpdus, while
 * time_decode() is used to convert time values received in bpdus.
 */
Times are internally held in seconds, while the protocol uses 1/256 seconds.
time_encode() is used to convert time values sent in bpdus, while
time_decode() is used to convert time values received in bpdus.
Times are internally held in seconds while the protocol uses 1 / 256 seconds . time_encode () is used to convert time values sent in bpdus while time_decode () is used to convert time values received in bpdus .
static ovs_be16
time_encode(uint8_t value)
{
    return htons(value * 256);
}
static ovs_be16 time_encode ( uint8_t value ) { return htons ( value * 256 ) ; }
Times are internally held in seconds, while the protocol uses 1/256 seconds.
Times are internally held in seconds while the protocol uses 1 / 256 seconds .