vector.h revision 4eaa471005973e11a6110b69fe990530b3b95a38
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai/************************************************************************
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * RSTP library - Rapid Spanning Tree (802.1t, 802.1w)
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * Copyright (C) 2001-2003 Optical Access
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * Author: Alex Rozin
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * This file is part of RSTP library.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * RSTP library is free software; you can redistribute it and/or modify it
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * under the terms of the GNU Lesser General Public License as published by the
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * Free Software Foundation; version 2.1
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * RSTP library is distributed in the hope that it will be useful, but
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * WITHOUT ANY WARRANTY; without even the implied warranty of
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * General Public License for more details.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * You should have received a copy of the GNU Lesser General Public License
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * along with RSTP library; see the file COPYING. If not, write to the Free
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai * 02111-1307, USA.
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai **********************************************************************/
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai/* STP priority vectors API : 17.4.2 */
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai unsigned short prio;
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavaitypedef unsigned short PORT_ID;
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiSTP_VECT_copy (OUT PRIO_VECTOR_T* t, IN PRIO_VECTOR_T* f);
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiSTP_VECT_compare_bridge_id (IN BRIDGE_ID* b1, IN BRIDGE_ID* b2);
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiSTP_VECT_compare_vector (IN PRIO_VECTOR_T* v1, IN PRIO_VECTOR_T* v2);
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiSTP_VECT_get_vector (IN BPDU_BODY_T* b, OUT PRIO_VECTOR_T* v);
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiSTP_VECT_set_vector (IN PRIO_VECTOR_T* v, OUT BPDU_BODY_T* b);
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiSTP_VECT_print (IN char* title, IN PRIO_VECTOR_T* v);
4eaa471005973e11a6110b69fe990530b3b95a38Rishi SrivatsavaiSTP_VECT_br_id_print (IN char *title, IN BRIDGE_ID* br_id, IN Bool cr);
4eaa471005973e11a6110b69fe990530b3b95a38Rishi Srivatsavai#endif /* _PRIO_VECTOR_H__ */