lib/stp.c
/* Returns the name for the given 'state' (for use in debugging and log
 * messages). */
Returns the name for the given 'state' (for use in debugging and log
messages).
Returns the name for the given ' state ' ( for use in debugging and log messages ) .
const char *
stp_state_name(enum stp_state state)
{
    switch (state) {
    case STP_DISABLED:
        return "disabled";
    case STP_LISTENING:
        return "listening";
    case STP_LEARNING:
        return "learning";
    case STP_FORWARDING:
        return "forwarding";
    case STP_BLOCKING:
        return "blocking";
    default:
        OVS_NOT_REACHED();
    }
}
const char * stp_state_name ( enum stp_state state ) { switch ( state ) { case STP_DISABLED : return " " ; case STP_LISTENING : return " " ; case STP_LEARNING : return " " ; case STP_FORWARDING : return " " ; case STP_BLOCKING : return " " ; default : OVS_NOT_REACHED ( ) ; } }
Returns the name for the given 'state' (for use in debugging and log
 messages).
Returns the name for the given ' state ' ( for use in debugging and log messages ) .