ip6_tunnel.h 879 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 __rcu *next; /* next tunnel in list */
  13. struct net_device *dev; /* virtual device associated with tunnel */
  14. struct ip6_tnl_parm parms; /* tunnel configuration parameters */
  15. struct flowi fl; /* flowi template for xmit */
  16. struct dst_entry *dst_cache; /* cached dst */
  17. u32 dst_cookie;
  18. };
  19. /* Tunnel encapsulation limit destination sub-option */
  20. struct ipv6_tlv_tnl_enc_lim {
  21. __u8 type; /* type-code for option */
  22. __u8 length; /* option length */
  23. __u8 encap_limit; /* tunnel encapsulation limit */
  24. } __packed;
  25. #endif