ip6_tunnel.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * $Id: ip6_tunnel.h,v 1.1.1.1 2007/06/12 07:27:16 eyryu Exp $
  3. */
  4. #ifndef _IP6_TUNNEL_H
  5. #define _IP6_TUNNEL_H
  6. #define IPV6_TLV_TNL_ENCAP_LIMIT 4
  7. #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
  8. /* don't add encapsulation limit if one isn't present in inner packet */
  9. #define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1
  10. /* copy the traffic class field from the inner packet */
  11. #define IP6_TNL_F_USE_ORIG_TCLASS 0x2
  12. /* copy the flowlabel from the inner packet */
  13. #define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4
  14. /* being used for Mobile IPv6 */
  15. #define IP6_TNL_F_MIP6_DEV 0x8
  16. /* copy DSCP from the outer packet */
  17. #define IP6_TNL_F_RCV_DSCP_COPY 0x10
  18. struct ip6_tnl_parm {
  19. char name[IFNAMSIZ]; /* name of tunnel device */
  20. int link; /* ifindex of underlying L2 interface */
  21. __u8 proto; /* tunnel protocol */
  22. __u8 encap_limit; /* encapsulation limit for tunnel */
  23. __u8 hop_limit; /* hop limit for tunnel */
  24. __be32 flowinfo; /* traffic class and flowlabel for tunnel */
  25. __u32 flags; /* tunnel flags */
  26. struct in6_addr laddr; /* local tunnel end-point address */
  27. struct in6_addr raddr; /* remote tunnel end-point address */
  28. };
  29. #endif