source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/ip6_tunnel.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1/*
2 */
3
4#ifndef _IP6_TUNNEL_H
5#define _IP6_TUNNEL_H
6
7#include <asm/types.h>
8
9#define IPV6_TLV_TNL_ENCAP_LIMIT 4
10#define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
11
12/* don't add encapsulation limit if one isn't present in inner packet */
13#define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1
14/* copy the traffic class field from the inner packet */
15#define IP6_TNL_F_USE_ORIG_TCLASS 0x2
16/* copy the flowlabel from the inner packet */
17#define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4
18/* being used for Mobile IPv6 */
19#define IP6_TNL_F_MIP6_DEV 0x8
20/* copy DSCP from the outer packet */
21#define IP6_TNL_F_RCV_DSCP_COPY 0x10
22
23struct ip6_tnl_parm {
24        char name[IFNAMSIZ];    /* name of tunnel device */
25        int link;               /* ifindex of underlying L2 interface */
26        __u8 proto;             /* tunnel protocol */
27        __u8 encap_limit;       /* encapsulation limit for tunnel */
28        __u8 hop_limit;         /* hop limit for tunnel */
29        __u32 flowinfo;         /* traffic class and flowlabel for tunnel */
30        __u32 flags;            /* tunnel flags */
31        struct in6_addr laddr;  /* local tunnel end-point address */
32        struct in6_addr raddr;  /* remote tunnel end-point address */
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.