~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/ip6_tunnel.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef _IP6_TUNNEL_H
  3 #define _IP6_TUNNEL_H
  4 
  5 #include <linux/types.h>
  6 #include <linux/if.h>           /* For IFNAMSIZ. */
  7 #include <linux/in6.h>          /* For struct in6_addr. */
  8 
  9 #define IPV6_TLV_TNL_ENCAP_LIMIT 4
 10 #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
 11 
 12 /* don't add encapsulation limit if one isn't present in inner packet */
 13 #define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1
 14 /* copy the traffic class field from the inner packet */
 15 #define IP6_TNL_F_USE_ORIG_TCLASS 0x2
 16 /* copy the flowlabel from the inner packet */
 17 #define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4
 18 /* being used for Mobile IPv6 */
 19 #define IP6_TNL_F_MIP6_DEV 0x8
 20 /* copy DSCP from the outer packet */
 21 #define IP6_TNL_F_RCV_DSCP_COPY 0x10
 22 /* copy fwmark from inner packet */
 23 #define IP6_TNL_F_USE_ORIG_FWMARK 0x20
 24 /* allow remote endpoint on the local node */
 25 #define IP6_TNL_F_ALLOW_LOCAL_REMOTE 0x40
 26 
 27 struct ip6_tnl_parm {
 28         char name[IFNAMSIZ];    /* name of tunnel device */
 29         int link;               /* ifindex of underlying L2 interface */
 30         __u8 proto;             /* tunnel protocol */
 31         __u8 encap_limit;       /* encapsulation limit for tunnel */
 32         __u8 hop_limit;         /* hop limit for tunnel */
 33         __be32 flowinfo;        /* traffic class and flowlabel for tunnel */
 34         __u32 flags;            /* tunnel flags */
 35         struct in6_addr laddr;  /* local tunnel end-point address */
 36         struct in6_addr raddr;  /* remote tunnel end-point address */
 37 };
 38 
 39 struct ip6_tnl_parm2 {
 40         char name[IFNAMSIZ];    /* name of tunnel device */
 41         int link;               /* ifindex of underlying L2 interface */
 42         __u8 proto;             /* tunnel protocol */
 43         __u8 encap_limit;       /* encapsulation limit for tunnel */
 44         __u8 hop_limit;         /* hop limit for tunnel */
 45         __be32 flowinfo;        /* traffic class and flowlabel for tunnel */
 46         __u32 flags;            /* tunnel flags */
 47         struct in6_addr laddr;  /* local tunnel end-point address */
 48         struct in6_addr raddr;  /* remote tunnel end-point address */
 49 
 50         __be16                  i_flags;
 51         __be16                  o_flags;
 52         __be32                  i_key;
 53         __be32                  o_key;
 54 };
 55 
 56 #endif
 57 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php