ip6_tunnel.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * $Id$
  3. */
  4. #ifndef _NET_IP6_TUNNEL_H
  5. #define _NET_IP6_TUNNEL_H
  6. #include <linux/ipv6.h>
  7. #include <linux/netdevice.h>
  8. #include <linux/ip6_tunnel.h>
  9. /* capable of sending packets */
  10. #define IP6_TNL_F_CAP_XMIT 0x10000
  11. /* capable of receiving packets */
  12. #define IP6_TNL_F_CAP_RCV 0x20000
  13. /* IPv6 tunnel */
  14. struct ip6_tnl {
  15. struct ip6_tnl *next; /* next tunnel in list */
  16. struct net_device *dev; /* virtual device associated with tunnel */
  17. struct net_device_stats stat; /* statistics for tunnel device */
  18. int recursion; /* depth of hard_start_xmit recursion */
  19. struct ip6_tnl_parm parms; /* tunnel configuration parameters */
  20. struct flowi fl; /* flowi template for xmit */
  21. struct dst_entry *dst_cache; /* cached dst */
  22. u32 dst_cookie;
  23. };
  24. /* Tunnel encapsulation limit destination sub-option */
  25. struct ipv6_tlv_tnl_enc_lim {
  26. __u8 type; /* type-code for option */
  27. __u8 length; /* option length */
  28. __u8 encap_limit; /* tunnel encapsulation limit */
  29. } __attribute__ ((packed));
  30. #endif