|
|
| version 1.1.1.1, 2016/10/18 13:28:18 | version 1.1.1.2, 2023/09/27 11:14:54 |
|---|---|
| Line 29 | Line 29 |
| #include <linux/types.h> | #include <linux/types.h> |
| #include <linux/version.h> | |
| /* | #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) |
| It is just a stripped copy of the Linux kernel header "linux/in6.h" | #include <linux/in6.h> |
| #else | |
| #ifndef __ANDROID__ | |
| /* | |
| It is just a stripped copy of the Linux kernel header "linux/in6.h" | |
| "Flow label" things are still not defined in "netinet/in*.h" headers, | "Flow label" things are still not defined in "netinet/in*.h" headers, |
| but we cannot use "linux/in6.h" immediately because it currently | but we cannot use "linux/in6.h" immediately because it currently |
| conflicts with "netinet/in.h" . | conflicts with "netinet/in.h" . (in kernel versions < 3.7.0) |
| */ | */ |
| #ifndef __ANDROID__ | |
| struct in6_flowlabel_req | struct in6_flowlabel_req |
| { | { |
| struct in6_addr flr_dst; | struct in6_addr flr_dst; |
| Line 68 struct in6_flowlabel_req | Line 71 struct in6_flowlabel_req |
| #define IPV6_FLOWINFO_FLOWLABEL 0x000fffff | #define IPV6_FLOWINFO_FLOWLABEL 0x000fffff |
| #define IPV6_FLOWINFO_PRIORITY 0x0ff00000 | #define IPV6_FLOWINFO_PRIORITY 0x0ff00000 |
| #endif | |
| #define IPV6_FLOWLABEL_MGR 32 | #define IPV6_FLOWLABEL_MGR 32 |
| #define IPV6_FLOWINFO_SEND 33 | #define IPV6_FLOWINFO_SEND 33 |