diff options
| author | Ross Zwisler <ross.zwisler@linux.intel.com> | 2018-02-03 02:26:26 -0500 |
|---|---|---|
| committer | Ross Zwisler <ross.zwisler@linux.intel.com> | 2018-02-03 02:26:26 -0500 |
| commit | ee95f4059a833839bf52972191b2d4c3d3cec552 (patch) | |
| tree | a1c8587d9b82e64a75dde376a90a3d69b0f4847a /include/uapi/linux | |
| parent | d121f07691415df824e6b60520f782f6d13b3c81 (diff) | |
| parent | f81e1d35a6e36d30888c46283b8dd1022e847124 (diff) | |
Merge branch 'for-4.16/nfit' into libnvdimm-for-next
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/if_ether.h | 3 | ||||
| -rw-r--r-- | include/uapi/linux/libc-compat.h | 61 | ||||
| -rw-r--r-- | include/uapi/linux/netfilter/nf_conntrack_common.h | 2 |
3 files changed, 64 insertions, 2 deletions
diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h index 3ee3bf7c8526..144de4d2f385 100644 --- a/include/uapi/linux/if_ether.h +++ b/include/uapi/linux/if_ether.h | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #define _UAPI_LINUX_IF_ETHER_H | 23 | #define _UAPI_LINUX_IF_ETHER_H |
| 24 | 24 | ||
| 25 | #include <linux/types.h> | 25 | #include <linux/types.h> |
| 26 | #include <linux/libc-compat.h> | ||
| 26 | 27 | ||
| 27 | /* | 28 | /* |
| 28 | * IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble | 29 | * IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble |
| @@ -149,11 +150,13 @@ | |||
| 149 | * This is an Ethernet frame header. | 150 | * This is an Ethernet frame header. |
| 150 | */ | 151 | */ |
| 151 | 152 | ||
| 153 | #if __UAPI_DEF_ETHHDR | ||
| 152 | struct ethhdr { | 154 | struct ethhdr { |
| 153 | unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ | 155 | unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ |
| 154 | unsigned char h_source[ETH_ALEN]; /* source ether addr */ | 156 | unsigned char h_source[ETH_ALEN]; /* source ether addr */ |
| 155 | __be16 h_proto; /* packet type ID field */ | 157 | __be16 h_proto; /* packet type ID field */ |
| 156 | } __attribute__((packed)); | 158 | } __attribute__((packed)); |
| 159 | #endif | ||
| 157 | 160 | ||
| 158 | 161 | ||
| 159 | #endif /* _UAPI_LINUX_IF_ETHER_H */ | 162 | #endif /* _UAPI_LINUX_IF_ETHER_H */ |
diff --git a/include/uapi/linux/libc-compat.h b/include/uapi/linux/libc-compat.h index 282875cf8056..fc29efaa918c 100644 --- a/include/uapi/linux/libc-compat.h +++ b/include/uapi/linux/libc-compat.h | |||
| @@ -168,47 +168,106 @@ | |||
| 168 | 168 | ||
| 169 | /* If we did not see any headers from any supported C libraries, | 169 | /* If we did not see any headers from any supported C libraries, |
| 170 | * or we are being included in the kernel, then define everything | 170 | * or we are being included in the kernel, then define everything |
| 171 | * that we need. */ | 171 | * that we need. Check for previous __UAPI_* definitions to give |
| 172 | * unsupported C libraries a way to opt out of any kernel definition. */ | ||
| 172 | #else /* !defined(__GLIBC__) */ | 173 | #else /* !defined(__GLIBC__) */ |
| 173 | 174 | ||
| 174 | /* Definitions for if.h */ | 175 | /* Definitions for if.h */ |
| 176 | #ifndef __UAPI_DEF_IF_IFCONF | ||
| 175 | #define __UAPI_DEF_IF_IFCONF 1 | 177 | #define __UAPI_DEF_IF_IFCONF 1 |
| 178 | #endif | ||
| 179 | #ifndef __UAPI_DEF_IF_IFMAP | ||
| 176 | #define __UAPI_DEF_IF_IFMAP 1 | 180 | #define __UAPI_DEF_IF_IFMAP 1 |
| 181 | #endif | ||
| 182 | #ifndef __UAPI_DEF_IF_IFNAMSIZ | ||
| 177 | #define __UAPI_DEF_IF_IFNAMSIZ 1 | 183 | #define __UAPI_DEF_IF_IFNAMSIZ 1 |
| 184 | #endif | ||
| 185 | #ifndef __UAPI_DEF_IF_IFREQ | ||
| 178 | #define __UAPI_DEF_IF_IFREQ 1 | 186 | #define __UAPI_DEF_IF_IFREQ 1 |
| 187 | #endif | ||
| 179 | /* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */ | 188 | /* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */ |
| 189 | #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS | ||
| 180 | #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1 | 190 | #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1 |
| 191 | #endif | ||
| 181 | /* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */ | 192 | /* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */ |
| 193 | #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO | ||
| 182 | #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1 | 194 | #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1 |
| 195 | #endif | ||
| 183 | 196 | ||
| 184 | /* Definitions for in.h */ | 197 | /* Definitions for in.h */ |
| 198 | #ifndef __UAPI_DEF_IN_ADDR | ||
| 185 | #define __UAPI_DEF_IN_ADDR 1 | 199 | #define __UAPI_DEF_IN_ADDR 1 |
| 200 | #endif | ||
| 201 | #ifndef __UAPI_DEF_IN_IPPROTO | ||
| 186 | #define __UAPI_DEF_IN_IPPROTO 1 | 202 | #define __UAPI_DEF_IN_IPPROTO 1 |
| 203 | #endif | ||
| 204 | #ifndef __UAPI_DEF_IN_PKTINFO | ||
| 187 | #define __UAPI_DEF_IN_PKTINFO 1 | 205 | #define __UAPI_DEF_IN_PKTINFO 1 |
| 206 | #endif | ||
| 207 | #ifndef __UAPI_DEF_IP_MREQ | ||
| 188 | #define __UAPI_DEF_IP_MREQ 1 | 208 | #define __UAPI_DEF_IP_MREQ 1 |
| 209 | #endif | ||
| 210 | #ifndef __UAPI_DEF_SOCKADDR_IN | ||
| 189 | #define __UAPI_DEF_SOCKADDR_IN 1 | 211 | #define __UAPI_DEF_SOCKADDR_IN 1 |
| 212 | #endif | ||
| 213 | #ifndef __UAPI_DEF_IN_CLASS | ||
| 190 | #define __UAPI_DEF_IN_CLASS 1 | 214 | #define __UAPI_DEF_IN_CLASS 1 |
| 215 | #endif | ||
| 191 | 216 | ||
| 192 | /* Definitions for in6.h */ | 217 | /* Definitions for in6.h */ |
| 218 | #ifndef __UAPI_DEF_IN6_ADDR | ||
| 193 | #define __UAPI_DEF_IN6_ADDR 1 | 219 | #define __UAPI_DEF_IN6_ADDR 1 |
| 220 | #endif | ||
| 221 | #ifndef __UAPI_DEF_IN6_ADDR_ALT | ||
| 194 | #define __UAPI_DEF_IN6_ADDR_ALT 1 | 222 | #define __UAPI_DEF_IN6_ADDR_ALT 1 |
| 223 | #endif | ||
| 224 | #ifndef __UAPI_DEF_SOCKADDR_IN6 | ||
| 195 | #define __UAPI_DEF_SOCKADDR_IN6 1 | 225 | #define __UAPI_DEF_SOCKADDR_IN6 1 |
| 226 | #endif | ||
| 227 | #ifndef __UAPI_DEF_IPV6_MREQ | ||
| 196 | #define __UAPI_DEF_IPV6_MREQ 1 | 228 | #define __UAPI_DEF_IPV6_MREQ 1 |
| 229 | #endif | ||
| 230 | #ifndef __UAPI_DEF_IPPROTO_V6 | ||
| 197 | #define __UAPI_DEF_IPPROTO_V6 1 | 231 | #define __UAPI_DEF_IPPROTO_V6 1 |
| 232 | #endif | ||
| 233 | #ifndef __UAPI_DEF_IPV6_OPTIONS | ||
| 198 | #define __UAPI_DEF_IPV6_OPTIONS 1 | 234 | #define __UAPI_DEF_IPV6_OPTIONS 1 |
| 235 | #endif | ||
| 236 | #ifndef __UAPI_DEF_IN6_PKTINFO | ||
| 199 | #define __UAPI_DEF_IN6_PKTINFO 1 | 237 | #define __UAPI_DEF_IN6_PKTINFO 1 |
| 238 | #endif | ||
| 239 | #ifndef __UAPI_DEF_IP6_MTUINFO | ||
| 200 | #define __UAPI_DEF_IP6_MTUINFO 1 | 240 | #define __UAPI_DEF_IP6_MTUINFO 1 |
| 241 | #endif | ||
| 201 | 242 | ||
| 202 | /* Definitions for ipx.h */ | 243 | /* Definitions for ipx.h */ |
| 244 | #ifndef __UAPI_DEF_SOCKADDR_IPX | ||
| 203 | #define __UAPI_DEF_SOCKADDR_IPX 1 | 245 | #define __UAPI_DEF_SOCKADDR_IPX 1 |
| 246 | #endif | ||
| 247 | #ifndef __UAPI_DEF_IPX_ROUTE_DEFINITION | ||
| 204 | #define __UAPI_DEF_IPX_ROUTE_DEFINITION 1 | 248 | #define __UAPI_DEF_IPX_ROUTE_DEFINITION 1 |
| 249 | #endif | ||
| 250 | #ifndef __UAPI_DEF_IPX_INTERFACE_DEFINITION | ||
| 205 | #define __UAPI_DEF_IPX_INTERFACE_DEFINITION 1 | 251 | #define __UAPI_DEF_IPX_INTERFACE_DEFINITION 1 |
| 252 | #endif | ||
| 253 | #ifndef __UAPI_DEF_IPX_CONFIG_DATA | ||
| 206 | #define __UAPI_DEF_IPX_CONFIG_DATA 1 | 254 | #define __UAPI_DEF_IPX_CONFIG_DATA 1 |
| 255 | #endif | ||
| 256 | #ifndef __UAPI_DEF_IPX_ROUTE_DEF | ||
| 207 | #define __UAPI_DEF_IPX_ROUTE_DEF 1 | 257 | #define __UAPI_DEF_IPX_ROUTE_DEF 1 |
| 258 | #endif | ||
| 208 | 259 | ||
| 209 | /* Definitions for xattr.h */ | 260 | /* Definitions for xattr.h */ |
| 261 | #ifndef __UAPI_DEF_XATTR | ||
| 210 | #define __UAPI_DEF_XATTR 1 | 262 | #define __UAPI_DEF_XATTR 1 |
| 263 | #endif | ||
| 211 | 264 | ||
| 212 | #endif /* __GLIBC__ */ | 265 | #endif /* __GLIBC__ */ |
| 213 | 266 | ||
| 267 | /* Definitions for if_ether.h */ | ||
| 268 | /* allow libcs like musl to deactivate this, glibc does not implement this. */ | ||
| 269 | #ifndef __UAPI_DEF_ETHHDR | ||
| 270 | #define __UAPI_DEF_ETHHDR 1 | ||
| 271 | #endif | ||
| 272 | |||
| 214 | #endif /* _UAPI_LIBC_COMPAT_H */ | 273 | #endif /* _UAPI_LIBC_COMPAT_H */ |
diff --git a/include/uapi/linux/netfilter/nf_conntrack_common.h b/include/uapi/linux/netfilter/nf_conntrack_common.h index 3fea7709a441..57ccfb32e87f 100644 --- a/include/uapi/linux/netfilter/nf_conntrack_common.h +++ b/include/uapi/linux/netfilter/nf_conntrack_common.h | |||
| @@ -36,7 +36,7 @@ enum ip_conntrack_info { | |||
| 36 | 36 | ||
| 37 | #define NF_CT_STATE_INVALID_BIT (1 << 0) | 37 | #define NF_CT_STATE_INVALID_BIT (1 << 0) |
| 38 | #define NF_CT_STATE_BIT(ctinfo) (1 << ((ctinfo) % IP_CT_IS_REPLY + 1)) | 38 | #define NF_CT_STATE_BIT(ctinfo) (1 << ((ctinfo) % IP_CT_IS_REPLY + 1)) |
| 39 | #define NF_CT_STATE_UNTRACKED_BIT (1 << (IP_CT_UNTRACKED + 1)) | 39 | #define NF_CT_STATE_UNTRACKED_BIT (1 << 6) |
| 40 | 40 | ||
| 41 | /* Bitset representing status of connection. */ | 41 | /* Bitset representing status of connection. */ |
| 42 | enum ip_conntrack_status { | 42 | enum ip_conntrack_status { |
