| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _NET_IP6_TUNNEL_H | 
|  | 2 | #define _NET_IP6_TUNNEL_H | 
|  | 3 |  | 
|  | 4 | #include <linux/ipv6.h> | 
|  | 5 | #include <linux/netdevice.h> | 
|  | 6 | #include <linux/ip6_tunnel.h> | 
|  | 7 |  | 
|  | 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 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | /* IPv6 tunnel */ | 
|  | 14 |  | 
|  | 15 | struct ip6_tnl { | 
|  | 16 | struct ip6_tnl *next;	/* next tunnel in list */ | 
|  | 17 | struct net_device *dev;	/* virtual device associated with tunnel */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | int recursion;		/* depth of hard_start_xmit recursion */ | 
| Joe Perches | f4ab2f72 | 2007-12-20 13:56:32 -0800 | [diff] [blame] | 19 | struct ip6_tnl_parm parms;	/* tunnel configuration parameters */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | struct flowi fl;	/* flowi template for xmit */ | 
|  | 21 | struct dst_entry *dst_cache;    /* cached dst */ | 
|  | 22 | u32 dst_cookie; | 
|  | 23 | }; | 
|  | 24 |  | 
|  | 25 | /* Tunnel encapsulation limit destination sub-option */ | 
|  | 26 |  | 
|  | 27 | struct ipv6_tlv_tnl_enc_lim { | 
|  | 28 | __u8 type;		/* type-code for option         */ | 
|  | 29 | __u8 length;		/* option length                */ | 
|  | 30 | __u8 encap_limit;	/* tunnel encapsulation limit   */ | 
|  | 31 | } __attribute__ ((packed)); | 
|  | 32 |  | 
|  | 33 | #endif |