122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _UAPI_LINUX_SEG6_IPTUNNEL_H
2022851890Sopenharmony_ci#define _UAPI_LINUX_SEG6_IPTUNNEL_H
2122851890Sopenharmony_ci#include <linux/seg6.h>
2222851890Sopenharmony_cienum {
2322851890Sopenharmony_ci  SEG6_IPTUNNEL_UNSPEC,
2422851890Sopenharmony_ci  SEG6_IPTUNNEL_SRH,
2522851890Sopenharmony_ci  __SEG6_IPTUNNEL_MAX,
2622851890Sopenharmony_ci};
2722851890Sopenharmony_ci#define SEG6_IPTUNNEL_MAX (__SEG6_IPTUNNEL_MAX - 1)
2822851890Sopenharmony_cistruct seg6_iptunnel_encap {
2922851890Sopenharmony_ci  int mode;
3022851890Sopenharmony_ci  struct ipv6_sr_hdr srh[0];
3122851890Sopenharmony_ci};
3222851890Sopenharmony_ci#define SEG6_IPTUN_ENCAP_SIZE(x) ((sizeof(* x)) + (((x)->srh->hdrlen + 1) << 3))
3322851890Sopenharmony_cienum {
3422851890Sopenharmony_ci  SEG6_IPTUN_MODE_INLINE,
3522851890Sopenharmony_ci  SEG6_IPTUN_MODE_ENCAP,
3622851890Sopenharmony_ci  SEG6_IPTUN_MODE_L2ENCAP,
3722851890Sopenharmony_ci};
3822851890Sopenharmony_ci#endif
39