/************************************************************************
* 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.
**********************************************************************/
/* This file contains prototypes for API from an operation
system to the RSTP */
#ifndef _STP_API_H__
#define _STP_API_H__
/************************
* Common base constants
************************/
#ifndef INOUT
#endif
#ifndef Zero
# define Zero 0
#endif
#ifndef Bool
# define Bool int
# define False 0
#endif
/********************************************
* constants: default values and linitations
*********************************************/
/* bridge configuration */
#define MIN_BR_PRIO 0
/* Note that this works with unscaled values */
/*
* These macros provide limits and tests for displaying comprehensible errors.
*/
/* port configuration */
#define MIN_PORT_PRIO 0
#include <uid_stp.h>
#include <stp_bpdu.h>
#ifndef __STPM_T__
#define __STPM_T__
struct stpm_t;
#endif
#ifndef __STP_VECTORS_T__
#define __STP_VECTORS_T__
struct stp_vectors;
#endif
void /* init the engine */
int
int
STP_IN_stpm_delete (int vlan_id);
int
int
int
STP_IN_stop_all (void);
int
STP_IN_delete_all (void);
/* Section 2. "Get" management */
int
int
const char*
int
int
int
int
const char *
/* Section 3. "Set" management */
int
STP_IN_stpm_set_cfg (int vlan_id,
int
#ifdef STP_DBG
int vlan_id, int port_index);
#endif
/* Section 4. RSTP functionality events */
int
STP_IN_one_second (void);
int /* call it, when port speed has been changed, speed in Kb/s */
int /* call it, when current port duplex mode has been changed */
int
int
void
#endif /* _STP_API_H__ */