blob: 13a0bd49a92a3b43f417bf3f1e14d596a59d38c7 [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
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
Eric Dumazetd94d9fe2009-11-04 09:50:58 -080023struct ebt_stp_config_info {
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010024 __u8 flags;
25 __u16 root_priol, root_priou;
Linus Torvalds1da177e2005-04-16 15:20:36 -070026 char root_addr[6], root_addrmsk[6];
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010027 __u32 root_costl, root_costu;
28 __u16 sender_priol, sender_priou;
Linus Torvalds1da177e2005-04-16 15:20:36 -070029 char sender_addr[6], sender_addrmsk[6];
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010030 __u16 portl, portu;
31 __u16 msg_agel, msg_ageu;
32 __u16 max_agel, max_ageu;
33 __u16 hello_timel, hello_timeu;
34 __u16 forward_delayl, forward_delayu;
Linus Torvalds1da177e2005-04-16 15:20:36 -070035};
36
Eric Dumazetd94d9fe2009-11-04 09:50:58 -080037struct ebt_stp_info {
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010038 __u8 type;
Linus Torvalds1da177e2005-04-16 15:20:36 -070039 struct ebt_stp_config_info config;
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010040 __u16 bitmask;
41 __u16 invflags;
Linus Torvalds1da177e2005-04-16 15:20:36 -070042};
43
44#endif