diff options
author | Serhey Popovych <serhe.popovych@gmail.com> | 2020-01-31 18:28:34 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-02-18 11:26:43 +0100 |
commit | 6da3aeb4aedb944dfe2a711bf7e41dbdf6abeb5d (patch) | |
tree | 864d1b52958c8f6b3d573042b6e7ad029fee3a5e | |
parent | 33f08da283244d87a5fdfd281d04548bd68f6a93 (diff) |
ip_set: Include kernel header instead of UAPI
This header is used to build kernel modules not userspace thus it is
correct to include linux/in.h kernel variant and not UAPI.
This fixes build on old and not widely supported systems like RHEL6 and
Debian GNU/Linux 7 (wheezy) before headers split to UAPI and kernel.
Fixes: 62d787ba5e66 ("netfilter: added missing includes to a number of header-files.")
Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
-rw-r--r-- | kernel/include/linux/netfilter/ipset/ip_set_getport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/include/linux/netfilter/ipset/ip_set_getport.h b/kernel/include/linux/netfilter/ipset/ip_set_getport.h index 09c5a96..83b88f1 100644 --- a/kernel/include/linux/netfilter/ipset/ip_set_getport.h +++ b/kernel/include/linux/netfilter/ipset/ip_set_getport.h @@ -4,7 +4,7 @@ #include <linux/skbuff.h> #include <linux/types.h> -#include <uapi/linux/in.h> +#include <linux/in.h> extern bool ip_set_get_ip4_port(const struct sk_buff *skb, bool src, __be16 *port, u8 *proto); |