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 * Based on code by Maciej Lipinski 00009 * (maciej.lipinski@cern.ch) - CERN BE-CO-HT 00010 * 00011 * Description: RTU VLAN registration entry object header. 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_VE_H 00032 #define __WHITERABBIT_RTU_VE_H 00033 00034 #include <stdint.h> 00035 00036 //--------------------------------------------- 00037 // Data Types 00038 //--------------------------------------------- 00039 00040 typedef struct { 00041 uint32_t port_mask; // VLAN port mask: 1 = ports assigned to this VLAN 00042 uint8_t fid; // Filtering Database Identifier 00043 uint8_t prio; // VLAN priority 00044 int has_prio; // priority defined; 00045 int prio_override; // priority override (force per-VLAN priority) 00046 int drop; // 1: drop the packet (VLAN not registered) 00047 } vlan_table_entry_t; 00048 00049 00050 00051 #endif /*__WHITERABBIT_RTU_VE_H*/ 00052