/************************************************************************
* 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.
**********************************************************************/
/* STP priority vectors API : 17.4.2 */
#include "base.h"
#include "stp_bpdu.h"
#include "vector.h"
#include "stp_vectors.h"
int
{
return -1;
return 1;
}
void
{
(void) memcpy (t, f, sizeof (PRIO_VECTOR_T));
}
void
IN unsigned long root_path_cost,
{
t->root_path_cost = root_path_cost;
t->design_port = design_port;
t->bridge_port = bridge_port;
}
int
{
int bridcmp;
if (! bridcmp) {
if (! bridcmp) {
if (! bridcmp) {
if (! bridcmp)
}
}
}
return bridcmp;
}
static unsigned short
{
/* LINTED: alignment */
return ntohs (*(unsigned short *)f);
}
static void
{
/* LINTED: alignment */
*(unsigned short *)t = htons (f);
}
static void
{
}
static void
{
}
void
{
/* LINTED: alignment */
}
void
{
unsigned long root_path_cost;
}
#ifdef STP_DBG
/*ARGSUSED*/
void
{
stp_trace ("%s=%04lX-%02x%02x%02x%02x%02x%02x",
#ifndef __SUN__
#endif
}
void
{
/****
stp_trace (" rpc=%ld ", (long) v->root_path_cost);
****/
/****/
stp_trace (" dp=%lx bp=%lx ",
(unsigned long) v->design_port,
(unsigned long) v->bridge_port);
/***********/
stp_trace ("\n");
}
#endif