San Mehat | 9163872 | 2010-04-06 18:49:49 -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 | *** |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 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 | *** |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef __LINUX_IF_ADDR_H |
| 20 | #define __LINUX_IF_ADDR_H |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 21 | #include <linux/types.h> |
| 22 | #include <linux/netlink.h> |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 24 | struct ifaddrmsg |
| 25 | { |
| 26 | __u8 ifa_family; |
| 27 | __u8 ifa_prefixlen; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 29 | __u8 ifa_flags; |
| 30 | __u8 ifa_scope; |
| 31 | __u32 ifa_index; |
| 32 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 34 | enum |
| 35 | { |
| 36 | IFA_UNSPEC, |
| 37 | IFA_ADDRESS, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 39 | IFA_LOCAL, |
| 40 | IFA_LABEL, |
| 41 | IFA_BROADCAST, |
| 42 | IFA_ANYCAST, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 44 | IFA_CACHEINFO, |
| 45 | IFA_MULTICAST, |
| 46 | __IFA_MAX, |
| 47 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 49 | #define IFA_MAX (__IFA_MAX - 1) |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 50 | #define IFA_F_SECONDARY 0x01 |
| 51 | #define IFA_F_TEMPORARY IFA_F_SECONDARY |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 52 | #define IFA_F_NODAD 0x02 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 54 | #define IFA_F_OPTIMISTIC 0x04 |
| 55 | #define IFA_F_DADFAILED 0x08 |
| 56 | #define IFA_F_HOMEADDRESS 0x10 |
| 57 | #define IFA_F_DEPRECATED 0x20 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 59 | #define IFA_F_TENTATIVE 0x40 |
| 60 | #define IFA_F_PERMANENT 0x80 |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 61 | struct ifa_cacheinfo |
| 62 | { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 64 | __u32 ifa_prefered; |
| 65 | __u32 ifa_valid; |
| 66 | __u32 cstamp; |
| 67 | __u32 tstamp; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 69 | }; |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 70 | #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) |
| 71 | #define IFA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg)) |
San Mehat | 9163872 | 2010-04-06 18:49:49 -0700 | [diff] [blame] | 72 | #endif |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |