/************************************************************************
* RSTP library - Rapid Spanning Tree (802.1t, 802.1w)
* Copyright (C) 2001-2003 Optical Access
* Author: Alex Rozin
*
* This file is part of RSTP library.
*
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation; version 2.1
*
* RSTP library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with RSTP library; see the file COPYING. If not, write to the Free
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
**********************************************************************/
/* Path Cost monitoring state machine */
#include "base.h"
#include "stpm.h"
#include "stp_to.h" /* for STP_OUT_get_port_oper_speed */
#define STATES { \
}
#include "choose.h"
static long
{
long lret;
lret = 20000000;
lret = 2000000;
lret = 200000;
lret = 20000;
lret = 2000;
lret = 200;
lret = 20;
lret = 2;
} else /* ??? */ { /* > Tb/s */
lret = 1;
}
#ifdef STP_DBG
}
#endif
return lret;
}
/* ARGSUSED */
static void
{
}
void
{
case BEGIN:
break;
case AUTO:
#ifdef STP_DBG
}
#endif
break;
case FORSE:
break;
case STABLE:
break;
}
}
{
case BEGIN:
case AUTO:
case FORSE:
case STABLE:
}
}
break;
}
return False;
}