/include/linux/ip6_tunnel.h

https://bitbucket.org/thekraven/iscream_thunderc-2.6.35 · C++ Header · 32 lines · 22 code · 5 blank · 5 comment · 0 complexity · 0a53ec630fca5d04dbad26e1b90f5710 MD5 · raw file

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