]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: Introduction of new commands and protocol version 7
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 27 Oct 2018 13:07:40 +0000 (15:07 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 27 Oct 2018 13:49:09 +0000 (15:49 +0200)
commite1758582b76411756193b54de5713413ad56946a
tree493496f1ee72d720eb942252809444752fd8649c
parentab2bd31c5c75034e469a27928e1e56504874ce74
netfilter: ipset: Introduction of new commands and protocol version 7

Two new commands (IPSET_CMD_GET_BYNAME, IPSET_CMD_GET_BYINDEX) are
introduced. The new commands makes possible to eliminate the getsockopt
operation (in iptables set/SET match/target) and thus use only netlink
communication between userspace and kernel for ipset. With the new
protocol version, userspace can exactly know which functionality is
supported by the running kernel.

Both the kernel and userspace is fully backward compatible.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
include/linux/netfilter/ipset/ip_set.h
include/uapi/linux/netfilter/ipset/ip_set.h
net/netfilter/ipset/ip_set_core.c