Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
| 23 | struct ebt_stp_config_info |
| 24 | { |
| 25 | uint8_t flags; |
| 26 | uint16_t root_priol, root_priou; |
| 27 | char root_addr[6], root_addrmsk[6]; |
| 28 | uint32_t root_costl, root_costu; |
| 29 | uint16_t sender_priol, sender_priou; |
| 30 | char sender_addr[6], sender_addrmsk[6]; |
| 31 | uint16_t portl, portu; |
| 32 | uint16_t msg_agel, msg_ageu; |
| 33 | uint16_t max_agel, max_ageu; |
| 34 | uint16_t hello_timel, hello_timeu; |
| 35 | uint16_t forward_delayl, forward_delayu; |
| 36 | }; |
| 37 | |
| 38 | struct ebt_stp_info |
| 39 | { |
| 40 | uint8_t type; |
| 41 | struct ebt_stp_config_info config; |
| 42 | uint16_t bitmask; |
| 43 | uint16_t invflags; |
| 44 | }; |
| 45 | |
| 46 | #endif |