xref: /titanic_50/usr/src/lib/librstp/common/rolesel.h (revision 4eaa471005973e11a6110b69fe990530b3b95a38)
1*4eaa4710SRishi Srivatsavai /************************************************************************
2*4eaa4710SRishi Srivatsavai  * RSTP library - Rapid Spanning Tree (802.1t, 802.1w)
3*4eaa4710SRishi Srivatsavai  * Copyright (C) 2001-2003 Optical Access
4*4eaa4710SRishi Srivatsavai  * Author: Alex Rozin
5*4eaa4710SRishi Srivatsavai  *
6*4eaa4710SRishi Srivatsavai  * This file is part of RSTP library.
7*4eaa4710SRishi Srivatsavai  *
8*4eaa4710SRishi Srivatsavai  * RSTP library is free software; you can redistribute it and/or modify it
9*4eaa4710SRishi Srivatsavai  * under the terms of the GNU Lesser General Public License as published by the
10*4eaa4710SRishi Srivatsavai  * Free Software Foundation; version 2.1
11*4eaa4710SRishi Srivatsavai  *
12*4eaa4710SRishi Srivatsavai  * RSTP library is distributed in the hope that it will be useful, but
13*4eaa4710SRishi Srivatsavai  * WITHOUT ANY WARRANTY; without even the implied warranty of
14*4eaa4710SRishi Srivatsavai  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
15*4eaa4710SRishi Srivatsavai  * General Public License for more details.
16*4eaa4710SRishi Srivatsavai  *
17*4eaa4710SRishi Srivatsavai  * You should have received a copy of the GNU Lesser General Public License
18*4eaa4710SRishi Srivatsavai  * along with RSTP library; see the file COPYING.  If not, write to the Free
19*4eaa4710SRishi Srivatsavai  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20*4eaa4710SRishi Srivatsavai  * 02111-1307, USA.
21*4eaa4710SRishi Srivatsavai  **********************************************************************/
22*4eaa4710SRishi Srivatsavai 
23*4eaa4710SRishi Srivatsavai /* Port Role Selection state machine : 17.22 */
24*4eaa4710SRishi Srivatsavai 
25*4eaa4710SRishi Srivatsavai #ifndef _STP_ROLES_SELECT_H
26*4eaa4710SRishi Srivatsavai #define _STP_ROLES_SELECT_H
27*4eaa4710SRishi Srivatsavai 
28*4eaa4710SRishi Srivatsavai void
29*4eaa4710SRishi Srivatsavai STP_rolesel_enter_state (STATE_MACH_T* s);
30*4eaa4710SRishi Srivatsavai 
31*4eaa4710SRishi Srivatsavai Bool
32*4eaa4710SRishi Srivatsavai STP_rolesel_check_conditions (STATE_MACH_T* s);
33*4eaa4710SRishi Srivatsavai 
34*4eaa4710SRishi Srivatsavai void
35*4eaa4710SRishi Srivatsavai STP_rolesel_update_stpm (struct stpm_t* this);
36*4eaa4710SRishi Srivatsavai 
37*4eaa4710SRishi Srivatsavai char*
38*4eaa4710SRishi Srivatsavai STP_rolesel_get_state_name (int state);
39*4eaa4710SRishi Srivatsavai 
40*4eaa4710SRishi Srivatsavai #endif /* _STP_ROLES_SELECT_H */
41*4eaa4710SRishi Srivatsavai 
42