diff options
author | Serhey Popovych <serhe.popovych@gmail.com> | 2020-03-05 17:28:24 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-03-09 12:09:55 +0100 |
commit | 87131f2882220e0b5d64e2b611f8cd6eb6331d78 (patch) | |
tree | cc71255b998ae7429b3dc03df65846936aa9714d /lib/args.c | |
parent | c2dfb6432aea5bb0a3522901b0c44f42d8adbd49 (diff) |
ip_set: Fix compatibility with kernels between v3.3 and v4.5
These kernels does not have in their @struct netlink_dump_control method
that is used to prepare for netlink dump ->start(). This affects all
kernels that does not contain commit fc9e50f5a5a4 ("netlink: add a start
callback for starting a netlink dump").
Introduce fake value of HAVE_NETLINK_DUMP_START_ARGS equal to 7 that
never spot in the wild and set HAVE_NETLINK_DUMP_START_ARGS to 4 only
after explicit test if ->start() is available.
Fixes: 7725bf5ba041 ("netfilter: ipset: fix suspicious RCU usage in find_set_and_id")
Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'lib/args.c')
0 files changed, 0 insertions, 0 deletions