Dr Andrew Scott G7VAV

My photo
 
July 2025
Mo Tu We Th Fr Sa Su
30 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 31 1 2 3
4 5 6 7 8 9 10


ip6t_rt.h
01: #ifndef _IP6T_RT_H
02: #define _IP6T_RT_H
03: 
04: #include <linux/types.h>
05: /*#include <linux/in6.h>*/
06: 
07: #define IP6T_RT_HOPS 16
08: 
09: struct ip6t_rt {
10:         __u32 rt_type;                  /* Routing Type */
11:         __u32 segsleft[2];                      /* Segments Left */
12:         __u32 hdrlen;                   /* Header Length */
13:         __u8  flags;                    /*  */
14:         __u8  invflags;                 /* Inverse flags */
15:         struct in6_addr addrs[IP6T_RT_HOPS];    /* Hops */
16:         __u8 addrnr;                    /* Nr of Addresses */
17: };
18: 
19: #define IP6T_RT_TYP             0x01
20: #define IP6T_RT_SGS             0x02
21: #define IP6T_RT_LEN             0x04
22: #define IP6T_RT_RES             0x08
23: #define IP6T_RT_FST_MASK        0x30
24: #define IP6T_RT_FST             0x10
25: #define IP6T_RT_FST_NSTRICT     0x20
26: 
27: /* Values for "invflags" field in struct ip6t_rt. */
28: #define IP6T_RT_INV_TYP         0x01    /* Invert the sense of type. */
29: #define IP6T_RT_INV_SGS         0x02    /* Invert the sense of Segments. */
30: #define IP6T_RT_INV_LEN         0x04    /* Invert the sense of length. */
31: #define IP6T_RT_INV_MASK        0x07    /* All possible flags. */
32: 
33: #endif /*_IP6T_RT_H*/
34: 


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