Lorenzo Colitti | 313379e | 2013-07-11 01:07:11 +0900 | [diff] [blame^] | 1 | /* |
| 2 | It is just a stripped copy of the kernel header "linux/in6.h" |
| 3 | |
| 4 | "Flow label" things are still not defined in "netinet/in*.h" headers, |
| 5 | but we cannot use "linux/in6.h" immediately because it currently |
| 6 | conflicts with "netinet/in.h" . |
| 7 | */ |
| 8 | |
| 9 | struct in6_flowlabel_req |
| 10 | { |
| 11 | struct in6_addr flr_dst; |
| 12 | __u32 flr_label; |
| 13 | __u8 flr_action; |
| 14 | __u8 flr_share; |
| 15 | __u16 flr_flags; |
| 16 | __u16 flr_expires; |
| 17 | __u16 flr_linger; |
| 18 | __u32 __flr_pad; |
| 19 | /* Options in format of IPV6_PKTOPTIONS */ |
| 20 | }; |
| 21 | |
| 22 | #define IPV6_FL_A_GET 0 |
| 23 | #define IPV6_FL_A_PUT 1 |
| 24 | #define IPV6_FL_A_RENEW 2 |
| 25 | |
| 26 | #define IPV6_FL_F_CREATE 1 |
| 27 | #define IPV6_FL_F_EXCL 2 |
| 28 | |
| 29 | #define IPV6_FL_S_NONE 0 |
| 30 | #define IPV6_FL_S_EXCL 1 |
| 31 | #define IPV6_FL_S_PROCESS 2 |
| 32 | #define IPV6_FL_S_USER 3 |
| 33 | #define IPV6_FL_S_ANY 255 |
| 34 | |
| 35 | #define IPV6_FLOWINFO_FLOWLABEL 0x000fffff |
| 36 | #define IPV6_FLOWINFO_PRIORITY 0x0ff00000 |
| 37 | |
| 38 | #define IPV6_FLOWLABEL_MGR 32 |
| 39 | #define IPV6_FLOWINFO_SEND 33 |