1*10491SRishi.Srivatsavai@Sun.COM /************************************************************************ 2*10491SRishi.Srivatsavai@Sun.COM * RSTP library - Rapid Spanning Tree (802.1t, 802.1w) 3*10491SRishi.Srivatsavai@Sun.COM * Copyright (C) 2001-2003 Optical Access 4*10491SRishi.Srivatsavai@Sun.COM * Author: Alex Rozin 5*10491SRishi.Srivatsavai@Sun.COM * 6*10491SRishi.Srivatsavai@Sun.COM * This file is part of RSTP library. 7*10491SRishi.Srivatsavai@Sun.COM * 8*10491SRishi.Srivatsavai@Sun.COM * RSTP library is free software; you can redistribute it and/or modify it 9*10491SRishi.Srivatsavai@Sun.COM * under the terms of the GNU Lesser General Public License as published by the 10*10491SRishi.Srivatsavai@Sun.COM * Free Software Foundation; version 2.1 11*10491SRishi.Srivatsavai@Sun.COM * 12*10491SRishi.Srivatsavai@Sun.COM * RSTP library is distributed in the hope that it will be useful, but 13*10491SRishi.Srivatsavai@Sun.COM * WITHOUT ANY WARRANTY; without even the implied warranty of 14*10491SRishi.Srivatsavai@Sun.COM * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser 15*10491SRishi.Srivatsavai@Sun.COM * General Public License for more details. 16*10491SRishi.Srivatsavai@Sun.COM * 17*10491SRishi.Srivatsavai@Sun.COM * You should have received a copy of the GNU Lesser General Public License 18*10491SRishi.Srivatsavai@Sun.COM * along with RSTP library; see the file COPYING. If not, write to the Free 19*10491SRishi.Srivatsavai@Sun.COM * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 20*10491SRishi.Srivatsavai@Sun.COM * 02111-1307, USA. 21*10491SRishi.Srivatsavai@Sun.COM **********************************************************************/ 22*10491SRishi.Srivatsavai@Sun.COM 23*10491SRishi.Srivatsavai@Sun.COM /* This file contains prototypes for system dependent API 24*10491SRishi.Srivatsavai@Sun.COM from the RSTP to an operation system */ 25*10491SRishi.Srivatsavai@Sun.COM 26*10491SRishi.Srivatsavai@Sun.COM #ifndef _STP_OUT_H__ 27*10491SRishi.Srivatsavai@Sun.COM #define _STP_OUT_H__ 28*10491SRishi.Srivatsavai@Sun.COM 29*10491SRishi.Srivatsavai@Sun.COM #include "stp_vectors.h" 30*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_flush_lt (*stp_vectors->flush_lt) 31*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_get_port_mac (*stp_vectors->get_port_mac) 32*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_get_port_oper_speed (*stp_vectors->get_port_oper_speed) 33*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_get_port_link_status (*stp_vectors->get_port_link_status) 34*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_get_duplex (*stp_vectors->get_duplex) 35*10491SRishi.Srivatsavai@Sun.COM #ifdef STRONGLY_SPEC_802_1W 36*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_set_learning (*stp_vectors->set_learning) 37*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_set_forwarding (*stp_vectors->set_forwarding) 38*10491SRishi.Srivatsavai@Sun.COM #else 39*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_set_port_state (*stp_vectors->set_port_state) 40*10491SRishi.Srivatsavai@Sun.COM #endif 41*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_set_hardware_mode (*stp_vectors->set_hardware_mode) 42*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_tx_bpdu (*stp_vectors->tx_bpdu) 43*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_get_port_name (*stp_vectors->get_port_name) 44*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_get_init_stpm_cfg (*stp_vectors->get_init_stpm_cfg) 45*10491SRishi.Srivatsavai@Sun.COM #define STP_OUT_get_init_port_cfg (*stp_vectors->get_init_port_cfg) 46*10491SRishi.Srivatsavai@Sun.COM 47*10491SRishi.Srivatsavai@Sun.COM #endif /* _STP_OUT_H__ */ 48*10491SRishi.Srivatsavai@Sun.COM 49