1 #ifndef _NET_IP6_TUNNEL_H
2 #define _NET_IP6_TUNNEL_H
4 #include <linux/ipv6.h>
5 #include <linux/netdevice.h>
6 #include <linux/ip6_tunnel.h>
8 /* capable of sending packets */
9 #define IP6_TNL_F_CAP_XMIT 0x10000
10 /* capable of receiving packets */
11 #define IP6_TNL_F_CAP_RCV 0x20000
12 /* determine capability on a per-packet basis */
13 #define IP6_TNL_F_CAP_PER_PACKET 0x40000
18 struct ip6_tnl __rcu
*next
; /* next tunnel in list */
19 struct net_device
*dev
; /* virtual device associated with tunnel */
20 struct ip6_tnl_parm parms
; /* tunnel configuration parameters */
21 struct flowi fl
; /* flowi template for xmit */
22 struct dst_entry
*dst_cache
; /* cached dst */
26 /* Tunnel encapsulation limit destination sub-option */
28 struct ipv6_tlv_tnl_enc_lim
{
29 __u8 type
; /* type-code for option */
30 __u8 length
; /* option length */
31 __u8 encap_limit
; /* tunnel encapsulation limit */