00001 /* 00002 * White Rabbit RTU (Routing Table Unit) 00003 * Copyright (C) 2010, CERN. 00004 * 00005 * Version: wrsw_rtud v0.1 11/15/2010 00006 * 00007 * Authors: Juan Luis Manas (juan.manas@integrasys.es) 00008 * 00009 * Description: RTU VLAN database. 00010 * VLAN database management related operations and VLAN database 00011 * mirror. 00012 * 00013 * Fixes: 00014 * 00015 * 00016 * This program is free software; you can redistribute it and/or 00017 * modify it under the terms of the GNU General Public License 00018 * as published by the Free Software Foundation; either version 00019 * 2 of the License, or (at your option) any later version. 00020 * 00021 * This program is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00024 * GNU General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU General Public License 00027 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00028 */ 00029 00030 00031 #ifndef __WHITERABBIT_RTU_VD_H 00032 #define __WHITERABBIT_RTU_VD_H 00033 00034 #include "rtu_ve.h" 00035 00036 //--------------------------------------------- 00037 // Constants 00038 //--------------------------------------------- 00039 00040 // Maximum number of supported VLANs 00041 #define MAX_VLANS 4096 00042 00043 //--------------------------------------------- 00044 // Methods 00045 //--------------------------------------------- 00046 00047 int rtu_vd_init(); 00048 00049 vlan_table_entry_t* rtu_vd_read_entry( uint16_t vid ); 00050 00051 // TODO VLAN database Management Operations 00052 00053 int rtu_vd_create_entry(); 00054 00055 int rtu_vd_delete_entry(); 00056 00057 #endif /*__WHITERABBIT_RTU_VD_H*/