]> git.ipfire.org Git - thirdparty/ipset.git/commit
lib: split parser from command execution
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 25 Jun 2021 20:30:40 +0000 (22:30 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Sat, 26 Jun 2021 21:07:03 +0000 (23:07 +0200)
commit4dd0a5e5755ec058b78e3bd6da39fe2bb7bbb4f3
treeb19664e3d39278ac1ddd47e39fe251d5a8ada071
parent55923f521476a601feeea5ab3a12273ac2141441
lib: split parser from command execution

ipset_parse_argv() parses, builds and send the netlink messages to the
kernel. This patch extracts the parser and wrap it around the new
ipset_parser() function.

This patch comes is preparation for the ipset to nftables translation
infrastructure.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
lib/ipset.c