Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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_IF_BONDING_H |
| 20 | #define _LINUX_IF_BONDING_H |
| 21 | #include <linux/if.h> |
| 22 | #include <linux/types.h> |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | #include <linux/if_ether.h> |
| 25 | #define BOND_ABI_VERSION 2 |
| 26 | #define BOND_ENSLAVE_OLD (SIOCDEVPRIVATE) |
| 27 | #define BOND_RELEASE_OLD (SIOCDEVPRIVATE + 1) |
| 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 29 | #define BOND_SETHWADDR_OLD (SIOCDEVPRIVATE + 2) |
| 30 | #define BOND_SLAVE_INFO_QUERY_OLD (SIOCDEVPRIVATE + 11) |
| 31 | #define BOND_INFO_QUERY_OLD (SIOCDEVPRIVATE + 12) |
| 32 | #define BOND_CHANGE_ACTIVE_OLD (SIOCDEVPRIVATE + 13) |
| 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | #define BOND_CHECK_MII_STATUS (SIOCGMIIPHY) |
| 35 | #define BOND_MODE_ROUNDROBIN 0 |
| 36 | #define BOND_MODE_ACTIVEBACKUP 1 |
| 37 | #define BOND_MODE_XOR 2 |
| 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 39 | #define BOND_MODE_BROADCAST 3 |
| 40 | #define BOND_MODE_8023AD 4 |
| 41 | #define BOND_MODE_TLB 5 |
| 42 | #define BOND_MODE_ALB 6 |
| 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 44 | #define BOND_LINK_UP 0 |
| 45 | #define BOND_LINK_FAIL 1 |
| 46 | #define BOND_LINK_DOWN 2 |
| 47 | #define BOND_LINK_BACK 3 |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | #define BOND_STATE_ACTIVE 0 |
| 50 | #define BOND_STATE_BACKUP 1 |
| 51 | #define BOND_DEFAULT_MAX_BONDS 1 |
| 52 | #define BOND_DEFAULT_TX_QUEUES 16 |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | #define BOND_DEFAULT_RESEND_IGMP 1 |
| 55 | #define BOND_XMIT_POLICY_LAYER2 0 |
| 56 | #define BOND_XMIT_POLICY_LAYER34 1 |
| 57 | #define BOND_XMIT_POLICY_LAYER23 2 |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 59 | #define BOND_XMIT_POLICY_ENCAP23 3 |
| 60 | #define BOND_XMIT_POLICY_ENCAP34 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 61 | typedef struct ifbond { |
| 62 | __s32 bond_mode; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 64 | __s32 num_slaves; |
| 65 | __s32 miimon; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 66 | } ifbond; |
| 67 | typedef struct ifslave { |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 69 | __s32 slave_id; |
| 70 | char slave_name[IFNAMSIZ]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 71 | __s8 link; |
| 72 | __s8 state; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 74 | __u32 link_failure_count; |
| 75 | } ifslave; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | struct ad_info { |
| 77 | __u16 aggregator_id; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 79 | __u16 ports; |
| 80 | __u16 actor_key; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 81 | __u16 partner_key; |
| 82 | __u8 partner_system[ETH_ALEN]; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 84 | }; |
| 85 | #endif |