diff options
author | Alexander Aring <alex.aring@gmail.com> | 2020-03-28 01:00:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-30 08:30:57 +0300 |
commit | a7a29f9c361f8542604ef959ae6627f423b7a412 (patch) | |
tree | 2a47bb1d90dfb74af8349340ab382592ff646be3 /include/uapi/linux/rpl_iptunnel.h | |
parent | faee676944dab731c9b2b91cf86c769d291a2237 (diff) | |
download | linux-a7a29f9c361f8542604ef959ae6627f423b7a412.tar.xz |
net: ipv6: add rpl sr tunnel
This patch adds functionality to configure routes for RPL source routing
functionality. There is no IPIP functionality yet implemented which can
be added later when the cases when to use IPv6 encapuslation comes more
clear.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/rpl_iptunnel.h')
-rw-r--r-- | include/uapi/linux/rpl_iptunnel.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/uapi/linux/rpl_iptunnel.h b/include/uapi/linux/rpl_iptunnel.h new file mode 100644 index 000000000000..f4eed1f92baa --- /dev/null +++ b/include/uapi/linux/rpl_iptunnel.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ +/* + * IPv6 RPL-SR implementation + * + * Author: + * (C) 2020 Alexander Aring <alex.aring@gmail.com> + */ + +#ifndef _UAPI_LINUX_RPL_IPTUNNEL_H +#define _UAPI_LINUX_RPL_IPTUNNEL_H + +enum { + RPL_IPTUNNEL_UNSPEC, + RPL_IPTUNNEL_SRH, + __RPL_IPTUNNEL_MAX, +}; +#define RPL_IPTUNNEL_MAX (__RPL_IPTUNNEL_MAX - 1) + +#define RPL_IPTUNNEL_SRH_SIZE(srh) (((srh)->hdrlen + 1) << 3) + +#endif |