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