| Colin Cross | 07a5832 | 2022-02-08 19:45:27 -0800 | [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 _UAPI_LINUX_RPL_H | 
|  | 20 | #define _UAPI_LINUX_RPL_H | 
|  | 21 | #include <asm/byteorder.h> | 
|  | 22 | #include <linux/types.h> | 
|  | 23 | #include <linux/in6.h> | 
|  | 24 | struct ipv6_rpl_sr_hdr { | 
|  | 25 | __u8 nexthdr; | 
|  | 26 | __u8 hdrlen; | 
|  | 27 | __u8 type; | 
|  | 28 | __u8 segments_left; | 
|  | 29 | #ifdef __LITTLE_ENDIAN_BITFIELD | 
|  | 30 | __u32 cmpre : 4, cmpri : 4, reserved : 4, pad : 4, reserved1 : 16; | 
|  | 31 | #elif defined(__BIG_ENDIAN_BITFIELD) | 
|  | 32 | __u32 cmpri : 4, cmpre : 4, pad : 4, reserved : 20; | 
|  | 33 | #else | 
|  | 34 | #error "Please fix <asm/byteorder.h>" | 
|  | 35 | #endif | 
|  | 36 | union { | 
|  | 37 | struct in6_addr addr[0]; | 
|  | 38 | __u8 data[0]; | 
|  | 39 | } segments; | 
|  | 40 | } __attribute__((packed)); | 
|  | 41 | #define rpl_segaddr segments.addr | 
|  | 42 | #define rpl_segdata segments.data | 
|  | 43 | #endif |