blob: 8a3c363fe5441abc8ac35b99ea4050c8c1d075c6 [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 _UAPI__LINUX_MROUTE6_H
20#define _UAPI__LINUX_MROUTE6_H
21#include <linux/types.h>
22#include <linux/sockios.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define MRT6_BASE 200
25#define MRT6_INIT (MRT6_BASE)
Tao Baod7db5942015-01-28 10:07:51 -080026#define MRT6_DONE (MRT6_BASE + 1)
27#define MRT6_ADD_MIF (MRT6_BASE + 2)
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029#define MRT6_DEL_MIF (MRT6_BASE + 3)
30#define MRT6_ADD_MFC (MRT6_BASE + 4)
31#define MRT6_DEL_MFC (MRT6_BASE + 5)
32#define MRT6_VERSION (MRT6_BASE + 6)
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034#define MRT6_ASSERT (MRT6_BASE + 7)
35#define MRT6_PIM (MRT6_BASE + 8)
36#define MRT6_TABLE (MRT6_BASE + 9)
37#define MRT6_ADD_MFC_PROXY (MRT6_BASE + 10)
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039#define MRT6_DEL_MFC_PROXY (MRT6_BASE + 11)
40#define MRT6_MAX (MRT6_BASE + 11)
Ben Cheng655a7c02013-10-16 16:09:24 -070041#define SIOCGETMIFCNT_IN6 SIOCPROTOPRIVATE
Tao Baod7db5942015-01-28 10:07:51 -080042#define SIOCGETSGCNT_IN6 (SIOCPROTOPRIVATE + 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044#define SIOCGETRPF (SIOCPROTOPRIVATE + 2)
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define MAXMIFS 32
46typedef unsigned long mifbitmap_t;
47typedef unsigned short mifi_t;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049#define ALL_MIFS ((mifi_t) (- 1))
Ben Cheng655a7c02013-10-16 16:09:24 -070050#ifndef IF_SETSIZE
51#define IF_SETSIZE 256
52#endif
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54typedef __u32 if_mask;
55#define NIFBITS (sizeof(if_mask) * 8)
56#ifndef DIV_ROUND_UP
57#define DIV_ROUND_UP(x,y) (((x) + ((y) - 1)) / (y))
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#endif
60typedef struct if_set {
Tao Baod7db5942015-01-28 10:07:51 -080061 if_mask ifs_bits[DIV_ROUND_UP(IF_SETSIZE, NIFBITS)];
Ben Cheng655a7c02013-10-16 16:09:24 -070062} if_set;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064#define IF_SET(n,p) ((p)->ifs_bits[(n) / NIFBITS] |= (1 << ((n) % NIFBITS)))
65#define IF_CLR(n,p) ((p)->ifs_bits[(n) / NIFBITS] &= ~(1 << ((n) % NIFBITS)))
66#define IF_ISSET(n,p) ((p)->ifs_bits[(n) / NIFBITS] & (1 << ((n) % NIFBITS)))
67#define IF_COPY(f,t) bcopy(f, t, sizeof(* (f)))
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069#define IF_ZERO(p) bzero(p, sizeof(* (p)))
Ben Cheng655a7c02013-10-16 16:09:24 -070070struct mif6ctl {
Tao Baod7db5942015-01-28 10:07:51 -080071 mifi_t mif6c_mifi;
72 unsigned char mif6c_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 unsigned char vifc_threshold;
75 __u16 mif6c_pifi;
76 unsigned int vifc_rate_limit;
Ben Cheng655a7c02013-10-16 16:09:24 -070077};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define MIFF_REGISTER 0x1
80struct mf6cctl {
Tao Baod7db5942015-01-28 10:07:51 -080081 struct sockaddr_in6 mf6cc_origin;
82 struct sockaddr_in6 mf6cc_mcastgrp;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 mifi_t mf6cc_parent;
85 struct if_set mf6cc_ifset;
Ben Cheng655a7c02013-10-16 16:09:24 -070086};
87struct sioc_sg_req6 {
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 struct sockaddr_in6 src;
90 struct sockaddr_in6 grp;
91 unsigned long pktcnt;
92 unsigned long bytecnt;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 unsigned long wrong_if;
Ben Cheng655a7c02013-10-16 16:09:24 -070095};
96struct sioc_mif_req6 {
Tao Baod7db5942015-01-28 10:07:51 -080097 mifi_t mifi;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 unsigned long icount;
100 unsigned long ocount;
101 unsigned long ibytes;
102 unsigned long obytes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104};
105struct mrt6msg {
106#define MRT6MSG_NOCACHE 1
107#define MRT6MSG_WRONGMIF 2
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define MRT6MSG_WHOLEPKT 3
Tao Baod7db5942015-01-28 10:07:51 -0800110 __u8 im6_mbz;
111 __u8 im6_msgtype;
112 __u16 im6_mif;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 __u32 im6_pad;
115 struct in6_addr im6_src, im6_dst;
Ben Cheng655a7c02013-10-16 16:09:24 -0700116};
117#endif
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */