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

📄 stp_to.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 system dependent API   from the RSTP to an operation system */  #ifndef _STP_OUT_H__#define _STP_OUT_H__#include "uid_stp.h"/* In the best case: clean all Learning entries with the vlan_id and the port (if 'exclude'=0) or for all ports, exclude the port (if ''exclude'=1). If 'port'=0, delete all entries with the vlan_id, don't care to 'exclude'  */typedef enum {  LT_FLASH_ALL_PORTS_EXCLUDE_THIS,  LT_FLASH_ONLY_THE_PORT} LT_FLASH_TYPE_T;intSTP_OUT_flush_lt (IN int port_index, IN int vlan_id,                  IN LT_FLASH_TYPE_T type, IN char* reason);void /* for bridge id calculation */STP_OUT_get_port_mac (IN struct net_bridge_port *p, OUT unsigned char* mac);unsigned longSTP_OUT_get_port_oper_speed (IN unsigned int portNo);int /* 1- Full, 0- Half */STP_OUT_get_duplex (IN int port_index);#ifdef STRONGLY_SPEC_802_1WintSTP_OUT_set_learning (IN int port_index, IN int vlan_id, IN int enable);intSTP_OUT_set_forwarding (IN int port_index, IN int vlan_id, IN int enable);#else/* * In many kinds of hardware the state of ports may * be changed with another method */intSTP_OUT_set_port_state (IN struct net_bridge_port *port, IN RSTP_PORT_STATE state);#endifintSTP_OUT_set_hardware_mode (int vlan_id, UID_STP_MODE_T mode);intSTP_OUT_tx_bpdu (IN int port_index,   IN unsigned char* bpdu,                 IN size_t bpdu_len);const char *STP_OUT_get_port_name (IN int port_index);/*intSTP_OUT_get_init_stpm_cfg (IN int vlan_id,                           INOUT UID_STP_CFG_T* cfg);intSTP_OUT_get_init_port_cfg (IN int vlan_id,                           IN int port_index,                           INOUT UID_STP_PORT_CFG_T* cfg);*/#endif /* _STP_OUT_H__ */

⌨️ 快捷键说明

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