1#ifndef __LINUX_BRIDGE_EBT_STP_H 2#define __LINUX_BRIDGE_EBT_STP_H 3 4#define EBT_STP_TYPE 0x0001 5 6#define EBT_STP_FLAGS 0x0002 7#define EBT_STP_ROOTPRIO 0x0004 8#define EBT_STP_ROOTADDR 0x0008 9#define EBT_STP_ROOTCOST 0x0010 10#define EBT_STP_SENDERPRIO 0x0020 11#define EBT_STP_SENDERADDR 0x0040 12#define EBT_STP_PORT 0x0080 13#define EBT_STP_MSGAGE 0x0100 14#define EBT_STP_MAXAGE 0x0200 15#define EBT_STP_HELLOTIME 0x0400 16#define EBT_STP_FWDD 0x0800 17 18#define EBT_STP_MASK 0x0fff 19#define EBT_STP_CONFIG_MASK 0x0ffe 20 21#define EBT_STP_MATCH "stp" 22 23struct ebt_stp_config_info { 24 uint8_t flags; 25 uint16_t root_priol, root_priou; 26 char root_addr[6], root_addrmsk[6]; 27 uint32_t root_costl, root_costu; 28 uint16_t sender_priol, sender_priou; 29 char sender_addr[6], sender_addrmsk[6]; 30 uint16_t portl, portu; 31 uint16_t msg_agel, msg_ageu; 32 uint16_t max_agel, max_ageu; 33 uint16_t hello_timel, hello_timeu; 34 uint16_t forward_delayl, forward_delayu; 35}; 36 37struct ebt_stp_info { 38 uint8_t type; 39 struct ebt_stp_config_info config; 40 uint16_t bitmask; 41 uint16_t invflags; 42}; 43 44#endif 45