Subversion Repositories shark

Rev

Rev 422 | Details | Compare with Previous | Last modification | View Log | RSS feed

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