1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * IPv6 RPL-SR implementation
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 struct in6_addr addr[0];
43 } __attribute__((packed));
45 #define rpl_segaddr segments.addr
46 #define rpl_segdata segments.data