Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [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 | *** |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef __LINUX_MROUTE6_H |
| 20 | #define __LINUX_MROUTE6_H |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 21 | #include <linux/types.h> |
| 22 | #include <linux/sockios.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 */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 24 | #define MRT6_BASE 200 |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 25 | #define MRT6_INIT (MRT6_BASE) |
| 26 | #define MRT6_DONE (MRT6_BASE+1) |
| 27 | #define MRT6_ADD_MIF (MRT6_BASE+2) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 29 | #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 Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 34 | #define MRT6_ASSERT (MRT6_BASE+7) |
| 35 | #define MRT6_PIM (MRT6_BASE+8) |
| 36 | #define MRT6_TABLE (MRT6_BASE+9) |
| 37 | #define SIOCGETMIFCNT_IN6 SIOCPROTOPRIVATE |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 39 | #define SIOCGETSGCNT_IN6 (SIOCPROTOPRIVATE+1) |
| 40 | #define SIOCGETRPF (SIOCPROTOPRIVATE+2) |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 41 | #define MAXMIFS 32 |
| 42 | typedef unsigned long mifbitmap_t; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 44 | typedef unsigned short mifi_t; |
| 45 | #define ALL_MIFS ((mifi_t)(-1)) |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 46 | #ifndef IF_SETSIZE |
| 47 | #define IF_SETSIZE 256 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 49 | #endif |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 50 | typedef __u32 if_mask; |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 51 | #define NIFBITS (sizeof(if_mask) * 8) |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 52 | #ifndef DIV_ROUND_UP |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 54 | #define DIV_ROUND_UP(x,y) (((x) + ((y) - 1)) / (y)) |
| 55 | #endif |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 56 | typedef struct if_set { |
| 57 | if_mask ifs_bits[DIV_ROUND_UP(IF_SETSIZE, NIFBITS)]; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 59 | } if_set; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 60 | #define IF_SET(n, p) ((p)->ifs_bits[(n)/NIFBITS] |= (1 << ((n) % NIFBITS))) |
| 61 | #define IF_CLR(n, p) ((p)->ifs_bits[(n)/NIFBITS] &= ~(1 << ((n) % NIFBITS))) |
| 62 | #define IF_ISSET(n, p) ((p)->ifs_bits[(n)/NIFBITS] & (1 << ((n) % NIFBITS))) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 64 | #define IF_COPY(f, t) bcopy(f, t, sizeof(*(f))) |
| 65 | #define IF_ZERO(p) bzero(p, sizeof(*(p))) |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 66 | struct mif6ctl { |
| 67 | mifi_t mif6c_mifi; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 69 | unsigned char mif6c_flags; |
| 70 | unsigned char vifc_threshold; |
| 71 | __u16 mif6c_pifi; |
| 72 | unsigned int vifc_rate_limit; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 74 | }; |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 75 | #define MIFF_REGISTER 0x1 |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 76 | struct mf6cctl { |
| 77 | struct sockaddr_in6 mf6cc_origin; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 79 | struct sockaddr_in6 mf6cc_mcastgrp; |
| 80 | mifi_t mf6cc_parent; |
| 81 | struct if_set mf6cc_ifset; |
| 82 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 84 | struct sioc_sg_req6 { |
| 85 | struct sockaddr_in6 src; |
| 86 | struct sockaddr_in6 grp; |
| 87 | unsigned long pktcnt; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 89 | unsigned long bytecnt; |
| 90 | unsigned long wrong_if; |
| 91 | }; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 92 | struct sioc_mif_req6 { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 94 | mifi_t mifi; |
| 95 | unsigned long icount; |
| 96 | unsigned long ocount; |
| 97 | unsigned long ibytes; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 99 | unsigned long obytes; |
| 100 | }; |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 101 | struct mrt6msg { |
| 102 | #define MRT6MSG_NOCACHE 1 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 104 | #define MRT6MSG_WRONGMIF 2 |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 105 | #define MRT6MSG_WHOLEPKT 3 |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 106 | __u8 im6_mbz; |
| 107 | __u8 im6_msgtype; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 109 | __u16 im6_mif; |
| 110 | __u32 im6_pad; |
| 111 | struct in6_addr im6_src, im6_dst; |
| 112 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Steinar H. Gunderson | 0688023 | 2011-01-20 00:12:30 +0100 | [diff] [blame] | 114 | #endif |