ip6_tunnel.h 947 B

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