ebt_stp.h revision 96c1db7b9d601c31d103389cac074a6cce0d7633
1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef __LINUX_BRIDGE_EBT_STP_H 20#define __LINUX_BRIDGE_EBT_STP_H 21#include <linux/types.h> 22#define EBT_STP_TYPE 0x0001 23#define EBT_STP_FLAGS 0x0002 24#define EBT_STP_ROOTPRIO 0x0004 25#define EBT_STP_ROOTADDR 0x0008 26#define EBT_STP_ROOTCOST 0x0010 27#define EBT_STP_SENDERPRIO 0x0020 28#define EBT_STP_SENDERADDR 0x0040 29#define EBT_STP_PORT 0x0080 30#define EBT_STP_MSGAGE 0x0100 31#define EBT_STP_MAXAGE 0x0200 32#define EBT_STP_HELLOTIME 0x0400 33#define EBT_STP_FWDD 0x0800 34#define EBT_STP_MASK 0x0fff 35#define EBT_STP_CONFIG_MASK 0x0ffe 36#define EBT_STP_MATCH "stp" 37struct ebt_stp_config_info { 38 __u8 flags; 39 __u16 root_priol, root_priou; 40 char root_addr[6], root_addrmsk[6]; 41 __u32 root_costl, root_costu; 42 __u16 sender_priol, sender_priou; 43 char sender_addr[6], sender_addrmsk[6]; 44 __u16 portl, portu; 45 __u16 msg_agel, msg_ageu; 46 __u16 max_agel, max_ageu; 47 __u16 hello_timel, hello_timeu; 48 __u16 forward_delayl, forward_delayu; 49}; 50struct ebt_stp_info { 51 __u8 type; 52 struct ebt_stp_config_info config; 53 __u16 bitmask; 54 __u16 invflags; 55}; 56#endif 57