Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


ip6_tunnel.h
01: #ifndef _IP6_TUNNEL_H
02: #define _IP6_TUNNEL_H
03: 
04: #include <linux/types.h>
05: 
06: #define IPV6_TLV_TNL_ENCAP_LIMIT 4
07: #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
08: 
09: /* don't add encapsulation limit if one isn't present in inner packet */
10: #define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1
11: /* copy the traffic class field from the inner packet */
12: #define IP6_TNL_F_USE_ORIG_TCLASS 0x2
13: /* copy the flowlabel from the inner packet */
14: #define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4
15: /* being used for Mobile IPv6 */
16: #define IP6_TNL_F_MIP6_DEV 0x8
17: /* copy DSCP from the outer packet */
18: #define IP6_TNL_F_RCV_DSCP_COPY 0x10
19: /* copy fwmark from inner packet */
20: #define IP6_TNL_F_USE_ORIG_FWMARK 0x20
21: 
22: struct ip6_tnl_parm {
23:         char name[IFNAMSIZ];    /* name of tunnel device */
24:         int link;               /* ifindex of underlying L2 interface */
25:         __u8 proto;             /* tunnel protocol */
26:         __u8 encap_limit;       /* encapsulation limit for tunnel */
27:         __u8 hop_limit;         /* hop limit for tunnel */
28:         __be32 flowinfo;        /* traffic class and flowlabel for tunnel */
29:         __u32 flags;            /* tunnel flags */
30:         struct in6_addr laddr;  /* local tunnel end-point address */
31:         struct in6_addr raddr;  /* remote tunnel end-point address */
32: };
33: 
34: #endif
35: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/