Blame include/uapi/linux/ip6_tunnel.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Packit Service 3880ab
#ifndef _IP6_TUNNEL_H
Packit Service 3880ab
#define _IP6_TUNNEL_H
Packit Service 3880ab
Packit Service 3880ab
#include <linux/types.h>
Packit Service 3880ab
#include <linux/if.h>		/* For IFNAMSIZ. */
Packit Service 3880ab
#include <linux/in6.h>		/* For struct in6_addr. */
Packit Service 3880ab
Packit Service 3880ab
#define IPV6_TLV_TNL_ENCAP_LIMIT 4
Packit Service 3880ab
#define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
Packit Service 3880ab
Packit Service 3880ab
/* don't add encapsulation limit if one isn't present in inner packet */
Packit Service 3880ab
#define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1
Packit Service 3880ab
/* copy the traffic class field from the inner packet */
Packit Service 3880ab
#define IP6_TNL_F_USE_ORIG_TCLASS 0x2
Packit Service 3880ab
/* copy the flowlabel from the inner packet */
Packit Service 3880ab
#define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4
Packit Service 3880ab
/* being used for Mobile IPv6 */
Packit Service 3880ab
#define IP6_TNL_F_MIP6_DEV 0x8
Packit Service 3880ab
/* copy DSCP from the outer packet */
Packit Service 3880ab
#define IP6_TNL_F_RCV_DSCP_COPY 0x10
Packit Service 3880ab
/* copy fwmark from inner packet */
Packit Service 3880ab
#define IP6_TNL_F_USE_ORIG_FWMARK 0x20
Packit Service 3880ab
/* allow remote endpoint on the local node */
Packit Service 3880ab
#define IP6_TNL_F_ALLOW_LOCAL_REMOTE 0x40
Packit Service 3880ab
Packit Service 3880ab
struct ip6_tnl_parm {
Packit Service 3880ab
	char name[IFNAMSIZ];	/* name of tunnel device */
Packit Service 3880ab
	int link;		/* ifindex of underlying L2 interface */
Packit Service 3880ab
	__u8 proto;		/* tunnel protocol */
Packit Service 3880ab
	__u8 encap_limit;	/* encapsulation limit for tunnel */
Packit Service 3880ab
	__u8 hop_limit;		/* hop limit for tunnel */
Packit Service 3880ab
	__be32 flowinfo;	/* traffic class and flowlabel for tunnel */
Packit Service 3880ab
	__u32 flags;		/* tunnel flags */
Packit Service 3880ab
	struct in6_addr laddr;	/* local tunnel end-point address */
Packit Service 3880ab
	struct in6_addr raddr;	/* remote tunnel end-point address */
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct ip6_tnl_parm2 {
Packit Service 3880ab
	char name[IFNAMSIZ];	/* name of tunnel device */
Packit Service 3880ab
	int link;		/* ifindex of underlying L2 interface */
Packit Service 3880ab
	__u8 proto;		/* tunnel protocol */
Packit Service 3880ab
	__u8 encap_limit;	/* encapsulation limit for tunnel */
Packit Service 3880ab
	__u8 hop_limit;		/* hop limit for tunnel */
Packit Service 3880ab
	__be32 flowinfo;	/* traffic class and flowlabel for tunnel */
Packit Service 3880ab
	__u32 flags;		/* tunnel flags */
Packit Service 3880ab
	struct in6_addr laddr;	/* local tunnel end-point address */
Packit Service 3880ab
	struct in6_addr raddr;	/* remote tunnel end-point address */
Packit Service 3880ab
Packit Service 3880ab
	__be16			i_flags;
Packit Service 3880ab
	__be16			o_flags;
Packit Service 3880ab
	__be32			i_key;
Packit Service 3880ab
	__be32			o_key;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#endif