1*a7a29f9cSAlexander Aring /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2*a7a29f9cSAlexander Aring /* 3*a7a29f9cSAlexander Aring * IPv6 RPL-SR implementation 4*a7a29f9cSAlexander Aring * 5*a7a29f9cSAlexander Aring * Author: 6*a7a29f9cSAlexander Aring * (C) 2020 Alexander Aring <alex.aring@gmail.com> 7*a7a29f9cSAlexander Aring */ 8*a7a29f9cSAlexander Aring 9*a7a29f9cSAlexander Aring #ifndef _UAPI_LINUX_RPL_IPTUNNEL_H 10*a7a29f9cSAlexander Aring #define _UAPI_LINUX_RPL_IPTUNNEL_H 11*a7a29f9cSAlexander Aring 12*a7a29f9cSAlexander Aring enum { 13*a7a29f9cSAlexander Aring RPL_IPTUNNEL_UNSPEC, 14*a7a29f9cSAlexander Aring RPL_IPTUNNEL_SRH, 15*a7a29f9cSAlexander Aring __RPL_IPTUNNEL_MAX, 16*a7a29f9cSAlexander Aring }; 17*a7a29f9cSAlexander Aring #define RPL_IPTUNNEL_MAX (__RPL_IPTUNNEL_MAX - 1) 18*a7a29f9cSAlexander Aring 19*a7a29f9cSAlexander Aring #define RPL_IPTUNNEL_SRH_SIZE(srh) (((srh)->hdrlen + 1) << 3) 20*a7a29f9cSAlexander Aring 21*a7a29f9cSAlexander Aring #endif 22