/************************************************************************
* 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 machine instance : bridge per VLAN: 17.17 */
/* The Clause 17.13 points: "NOTE:The operation of the Bridge as a whole can
* be represented by the interaction between Bridge Ports specified,
* and by parameters of the Bridge stored in �Port 0�. This removes the
* need for any �per Bridge� specification elements, and helps ensure
* the minimum dependencies between Bridge Ports. This in turn supports
* the development of implementations that scale well with increasing
* numbers of Bridge Ports. This shift of focus to �per Port operation�
* for the RSTP is supported by underlying technical changes from the
* Spanning Tree Algorithm and Protocol (Clause 8):"
* Newetheless, it seems to me, the behaviour of of the bridge, its variables
* and functions are so distinct from Port, that I decided to design Bridge
* instance. I called this object 'stpm' from STP machine. I'd like to see
* another procedural model, more corresponding to this note on Clause 17.13 */
#ifndef _STP_MACHINE_H__
#define _STP_MACHINE_H__
#include "port.h"
#include "rolesel.h"
typedef enum {/* 17.12, 17.16.1 */
FORCE_STP_COMPAT = 0,
struct stpm_t {
/* The only "per bridge" state machine */
/* variables */
};
#ifndef __STPM_T__
#define __STPM_T__
#endif
/* Functions prototypes */
void
int
void
int
void
int
STPM_T *
STP_stpm_get_the_list (void);
void
int
const char*
#endif /* _STP_MACHINE_H__ */