1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * IPv6 RPL-SR implementation
6 * (C) 2020 Alexander Aring <alex.aring@gmail.com>
9 #ifndef _UAPI_LINUX_RPL_H
10 #define _UAPI_LINUX_RPL_H
12 #include <asm/byteorder.h>
13 #include <linux/types.h>
14 #include <linux/in6.h>
19 struct ipv6_rpl_sr_hdr {
24 #if defined(__LITTLE_ENDIAN_BITFIELD)
30 #elif defined(__BIG_ENDIAN_BITFIELD)
36 #error "Please fix <asm/byteorder.h>"
40 __DECLARE_FLEX_ARRAY(struct in6_addr, addr);
41 __DECLARE_FLEX_ARRAY(__u8, data);
43 } __attribute__((packed));
45 #define rpl_segaddr segments.addr
46 #define rpl_segdata segments.data