1 #ifndef __LINUX_BRIDGE_EBT_STP_H
2 #define __LINUX_BRIDGE_EBT_STP_H
4 #include <linux/types.h>
6 #define EBT_STP_TYPE 0x0001
8 #define EBT_STP_FLAGS 0x0002
9 #define EBT_STP_ROOTPRIO 0x0004
10 #define EBT_STP_ROOTADDR 0x0008
11 #define EBT_STP_ROOTCOST 0x0010
12 #define EBT_STP_SENDERPRIO 0x0020
13 #define EBT_STP_SENDERADDR 0x0040
14 #define EBT_STP_PORT 0x0080
15 #define EBT_STP_MSGAGE 0x0100
16 #define EBT_STP_MAXAGE 0x0200
17 #define EBT_STP_HELLOTIME 0x0400
18 #define EBT_STP_FWDD 0x0800
20 #define EBT_STP_MASK 0x0fff
21 #define EBT_STP_CONFIG_MASK 0x0ffe
23 #define EBT_STP_MATCH "stp"
25 struct ebt_stp_config_info
{
27 __u16 root_priol
, root_priou
;
28 char root_addr
[6], root_addrmsk
[6];
29 __u32 root_costl
, root_costu
;
30 __u16 sender_priol
, sender_priou
;
31 char sender_addr
[6], sender_addrmsk
[6];
33 __u16 msg_agel
, msg_ageu
;
34 __u16 max_agel
, max_ageu
;
35 __u16 hello_timel
, hello_timeu
;
36 __u16 forward_delayl
, forward_delayu
;
41 struct ebt_stp_config_info config
;