Home | History | Annotate | Download | only in linux
      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 _UAPI_LINUX_IF_BRIDGE_H
     20 #define _UAPI_LINUX_IF_BRIDGE_H
     21 #include <linux/types.h>
     22 #define SYSFS_BRIDGE_ATTR "bridge"
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define SYSFS_BRIDGE_FDB "brforward"
     25 #define SYSFS_BRIDGE_PORT_SUBDIR "brif"
     26 #define SYSFS_BRIDGE_PORT_ATTR "brport"
     27 #define SYSFS_BRIDGE_PORT_LINK "bridge"
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define BRCTL_VERSION 1
     30 #define BRCTL_GET_VERSION 0
     31 #define BRCTL_GET_BRIDGES 1
     32 #define BRCTL_ADD_BRIDGE 2
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define BRCTL_DEL_BRIDGE 3
     35 #define BRCTL_ADD_IF 4
     36 #define BRCTL_DEL_IF 5
     37 #define BRCTL_GET_BRIDGE_INFO 6
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define BRCTL_GET_PORT_LIST 7
     40 #define BRCTL_SET_BRIDGE_FORWARD_DELAY 8
     41 #define BRCTL_SET_BRIDGE_HELLO_TIME 9
     42 #define BRCTL_SET_BRIDGE_MAX_AGE 10
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define BRCTL_SET_AGEING_TIME 11
     45 #define BRCTL_SET_GC_INTERVAL 12
     46 #define BRCTL_GET_PORT_INFO 13
     47 #define BRCTL_SET_BRIDGE_STP_STATE 14
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define BRCTL_SET_BRIDGE_PRIORITY 15
     50 #define BRCTL_SET_PORT_PRIORITY 16
     51 #define BRCTL_SET_PATH_COST 17
     52 #define BRCTL_GET_FDB_ENTRIES 18
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define BR_STATE_DISABLED 0
     55 #define BR_STATE_LISTENING 1
     56 #define BR_STATE_LEARNING 2
     57 #define BR_STATE_FORWARDING 3
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define BR_STATE_BLOCKING 4
     60 struct __bridge_info {
     61  __u64 designated_root;
     62  __u64 bridge_id;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  __u32 root_path_cost;
     65  __u32 max_age;
     66  __u32 hello_time;
     67  __u32 forward_delay;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  __u32 bridge_max_age;
     70  __u32 bridge_hello_time;
     71  __u32 bridge_forward_delay;
     72  __u8 topology_change;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  __u8 topology_change_detected;
     75  __u8 root_port;
     76  __u8 stp_enabled;
     77  __u32 ageing_time;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79  __u32 gc_interval;
     80  __u32 hello_timer_value;
     81  __u32 tcn_timer_value;
     82  __u32 topology_change_timer_value;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  __u32 gc_timer_value;
     85 };
     86 struct __port_info {
     87  __u64 designated_root;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  __u64 designated_bridge;
     90  __u16 port_id;
     91  __u16 designated_port;
     92  __u32 path_cost;
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94  __u32 designated_cost;
     95  __u8 state;
     96  __u8 top_change_ack;
     97  __u8 config_pending;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99  __u8 unused0;
    100  __u32 message_age_timer_value;
    101  __u32 forward_delay_timer_value;
    102  __u32 hold_timer_value;
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 };
    105 struct __fdb_entry {
    106  __u8 mac_addr[6];
    107  __u8 port_no;
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109  __u8 is_local;
    110  __u32 ageing_timer_value;
    111  __u8 port_hi;
    112  __u8 pad0;
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114  __u16 unused;
    115 };
    116 #define BRIDGE_FLAGS_MASTER 1
    117 #define BRIDGE_FLAGS_SELF 2
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 #define BRIDGE_MODE_VEB 0
    120 #define BRIDGE_MODE_VEPA 1
    121 enum {
    122  IFLA_BRIDGE_FLAGS,
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124  IFLA_BRIDGE_MODE,
    125  IFLA_BRIDGE_VLAN_INFO,
    126  __IFLA_BRIDGE_MAX,
    127 };
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129 #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)
    130 #define BRIDGE_VLAN_INFO_MASTER (1<<0)
    131 #define BRIDGE_VLAN_INFO_PVID (1<<1)
    132 #define BRIDGE_VLAN_INFO_UNTAGGED (1<<2)
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134 struct bridge_vlan_info {
    135  __u16 flags;
    136  __u16 vid;
    137 };
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 enum {
    140  MDBA_UNSPEC,
    141  MDBA_MDB,
    142  MDBA_ROUTER,
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144  __MDBA_MAX,
    145 };
    146 #define MDBA_MAX (__MDBA_MAX - 1)
    147 enum {
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149  MDBA_MDB_UNSPEC,
    150  MDBA_MDB_ENTRY,
    151  __MDBA_MDB_MAX,
    152 };
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154 #define MDBA_MDB_MAX (__MDBA_MDB_MAX - 1)
    155 enum {
    156  MDBA_MDB_ENTRY_UNSPEC,
    157  MDBA_MDB_ENTRY_INFO,
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159  __MDBA_MDB_ENTRY_MAX,
    160 };
    161 #define MDBA_MDB_ENTRY_MAX (__MDBA_MDB_ENTRY_MAX - 1)
    162 enum {
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164  MDBA_ROUTER_UNSPEC,
    165  MDBA_ROUTER_PORT,
    166  __MDBA_ROUTER_MAX,
    167 };
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169 #define MDBA_ROUTER_MAX (__MDBA_ROUTER_MAX - 1)
    170 struct br_port_msg {
    171  __u8 family;
    172  __u32 ifindex;
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174 };
    175 struct br_mdb_entry {
    176  __u32 ifindex;
    177 #define MDB_TEMPORARY 0
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179 #define MDB_PERMANENT 1
    180  __u8 state;
    181  struct {
    182  union {
    183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    184  __be32 ip4;
    185  struct in6_addr ip6;
    186  } u;
    187  __be16 proto;
    188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    189  } addr;
    190 };
    191 enum {
    192  MDBA_SET_ENTRY_UNSPEC,
    193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    194  MDBA_SET_ENTRY,
    195  __MDBA_SET_ENTRY_MAX,
    196 };
    197 #define MDBA_SET_ENTRY_MAX (__MDBA_SET_ENTRY_MAX - 1)
    198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    199 #endif
    200