⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stp_in.h

📁 rstp for switch in vxworks
💻 H
字号:
/************************************************************************  * 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.  *  * RSTP library is free software; you can redistribute it and/or modify it  * 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#  define IN      /* consider as comments near 'input' parameters */#  define OUT     /* consider as comments near 'output' parameters */#  define INOUT   /* consider as comments near 'input/output' parameters */#endif#ifndef Zero#  define Zero        0#  define One         1#endif#ifndef Bool#  define Bool        int#  define False       0#  define True        1#endif/******************************************** * constants: default values and linitations *********************************************/ /* bridge configuration */#define DEF_BR_PRIO 32768#define MIN_BR_PRIO 0#define MAX_BR_PRIO 65535#define DEF_BR_HELLOT   2#define MIN_BR_HELLOT   1#define MAX_BR_HELLOT   10#define DEF_BR_MAXAGE   20#define MIN_BR_MAXAGE   6#define MAX_BR_MAXAGE   40#define DEF_BR_FWDELAY  15#define MIN_BR_FWDELAY  4#define MAX_BR_FWDELAY  30#define DEF_FORCE_VERS  2 /* NORMAL_RSTP *//* port configuration */#define DEF_PORT_PRIO   128#define MIN_PORT_PRIO   0#define MAX_PORT_PRIO   240 /* in steps of 16 */#define DEF_ADMIN_NON_STP   False#define DEF_ADMIN_EDGE      True#define DEF_LINK_DELAY      3 /* see edge.c */#define DEF_P2P         P2P_FORCE_TRUE  /*by wl 2007-1-30*/#ifdef _STP_MACHINE_H__/* Inner usage definitions & functions */extern int max_port;#ifdef __LINUX__#  define RSTP_INIT_CRITICAL_PATH_PROTECTIO#  define RSTP_CRITICAL_PATH_START#  define RSTP_CRITICAL_PATH_END#else#  define RSTP_INIT_CRITICAL_PATH_PROTECTIO STP_OUT_psos_init_semaphore ()#  define RSTP_CRITICAL_PATH_START          STP_OUT_psos_close_semaphore ()#  define RSTP_CRITICAL_PATH_END            STP_OUT_psos_open_semaphore ()   extern void STP_OUT_psos_init_semaphore (void);   extern void STP_OUT_psos_close_semaphore (void);   extern void STP_OUT_psos_open_semaphore (void);#endif#endif /* _STP_MACHINE_H__ */#endif /* _STP_API_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -