rpl_iptunnel.h 434 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2. /*
  3. * IPv6 RPL-SR implementation
  4. *
  5. * Author:
  6. * (C) 2020 Alexander Aring <[email protected]>
  7. */
  8. #ifndef _UAPI_LINUX_RPL_IPTUNNEL_H
  9. #define _UAPI_LINUX_RPL_IPTUNNEL_H
  10. enum {
  11. RPL_IPTUNNEL_UNSPEC,
  12. RPL_IPTUNNEL_SRH,
  13. __RPL_IPTUNNEL_MAX,
  14. };
  15. #define RPL_IPTUNNEL_MAX (__RPL_IPTUNNEL_MAX - 1)
  16. #define RPL_IPTUNNEL_SRH_SIZE(srh) (((srh)->hdrlen + 1) << 3)
  17. #endif