blob: 1025b9f5fb7ddd2657de1b28866f898a0a19bab7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __LINUX_BRIDGE_EBT_STP_H
2#define __LINUX_BRIDGE_EBT_STP_H
3
Jan Engelhardt06988b02011-01-20 17:50:17 +01004#include <linux/types.h>
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#define EBT_STP_TYPE 0x0001
7
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
19
20#define EBT_STP_MASK 0x0fff
21#define EBT_STP_CONFIG_MASK 0x0ffe
22
23#define EBT_STP_MATCH "stp"
24
Eric Dumazetd94d9fe2009-11-04 09:50:58 -080025struct ebt_stp_config_info {
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010026 __u8 flags;
27 __u16 root_priol, root_priou;
Linus Torvalds1da177e2005-04-16 15:20:36 -070028 char root_addr[6], root_addrmsk[6];
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010029 __u32 root_costl, root_costu;
30 __u16 sender_priol, sender_priou;
Linus Torvalds1da177e2005-04-16 15:20:36 -070031 char sender_addr[6], sender_addrmsk[6];
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010032 __u16 portl, portu;
33 __u16 msg_agel, msg_ageu;
34 __u16 max_agel, max_ageu;
35 __u16 hello_timel, hello_timeu;
36 __u16 forward_delayl, forward_delayu;
Linus Torvalds1da177e2005-04-16 15:20:36 -070037};
38
Eric Dumazetd94d9fe2009-11-04 09:50:58 -080039struct ebt_stp_info {
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010040 __u8 type;
Linus Torvalds1da177e2005-04-16 15:20:36 -070041 struct ebt_stp_config_info config;
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010042 __u16 bitmask;
43 __u16 invflags;
Linus Torvalds1da177e2005-04-16 15:20:36 -070044};
45
46#endif