blob: e08a1765921f9924f85ba924a89a99f96a157a9a [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_ADDR_H
20#define __LINUX_IF_ADDR_H
21#include <linux/types.h>
22#include <linux/netlink.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct ifaddrmsg {
25 __u8 ifa_family;
26 __u8 ifa_prefixlen;
27 __u8 ifa_flags;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 __u8 ifa_scope;
30 __u32 ifa_index;
31};
32enum {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 IFA_UNSPEC,
35 IFA_ADDRESS,
36 IFA_LOCAL,
37 IFA_LABEL,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 IFA_BROADCAST,
40 IFA_ANYCAST,
41 IFA_CACHEINFO,
42 IFA_MULTICAST,
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070044 IFA_FLAGS,
Ben Cheng655a7c02013-10-16 16:09:24 -070045 __IFA_MAX,
46};
47#define IFA_MAX (__IFA_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070049#define IFA_F_SECONDARY 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define IFA_F_TEMPORARY IFA_F_SECONDARY
51#define IFA_F_NODAD 0x02
52#define IFA_F_OPTIMISTIC 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070054#define IFA_F_DADFAILED 0x08
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define IFA_F_HOMEADDRESS 0x10
56#define IFA_F_DEPRECATED 0x20
57#define IFA_F_TENTATIVE 0x40
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070059#define IFA_F_PERMANENT 0x80
60#define IFA_F_MANAGETEMPADDR 0x100
61#define IFA_F_NOPREFIXROUTE 0x200
Ben Cheng655a7c02013-10-16 16:09:24 -070062struct ifa_cacheinfo {
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064 __u32 ifa_prefered;
65 __u32 ifa_valid;
66 __u32 cstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -070067 __u32 tstamp;
Christopher Ferris38062f92014-07-09 15:33:25 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069};
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))
Ben Cheng655a7c02013-10-16 16:09:24 -070072#endif
Christopher Ferris38062f92014-07-09 15:33:25 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */