Home | History | Annotate | Download | only in netfilter_bridge
      1 #ifndef __LINUX_BRIDGE_EBT_STP_H
      2 #define __LINUX_BRIDGE_EBT_STP_H
      3 
      4 #include <linux/types.h>
      5 
      6 #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 
     25 struct ebt_stp_config_info {
     26 	__u8 flags;
     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];
     32 	__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;
     37 };
     38 
     39 struct ebt_stp_info {
     40 	__u8 type;
     41 	struct ebt_stp_config_info config;
     42 	__u16 bitmask;
     43 	__u16 invflags;
     44 };
     45 
     46 #endif
     47