]> git.ipfire.org Git - thirdparty/nftables.git/commit
include: Pass nf_sock where needed as parameter
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Jul 2017 23:37:23 +0000 (05:07 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Jul 2017 12:26:30 +0000 (14:26 +0200)
commite0146fa254496dc12187053cd0cd6e5d20eb6a43
treee41f1d9b9ae20849fe281cf14c97e817c194b68a
parentf63405f9203ce7a8464d585ad49ea67fb2c0bb3f
include: Pass nf_sock where needed as parameter

This socket should not be global, it is also hidden in many layers of
code. Expose it as function parameters to decouple the netlink socket
handling logic from the command parsing, evaluation and bytecode
generation.

Joint work with Varsha Rao.

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
12 files changed:
include/cli.h
include/mnl.h
include/netlink.h
include/nftables.h
include/parser.h
include/rule.h
src/cli.c
src/evaluate.c
src/main.c
src/netlink.c
src/parser_bison.y
src/rule.c