diff options
author | 2016-11-06 21:15:51 +0800 | |
---|---|---|
committer | 2016-11-09 23:42:23 +0100 | |
commit | 4e24877e61e8507c0843e4bddbc6ecccbfd2e87d (patch) | |
tree | f72e0b5c9512c6837d4b278cec75671c107fa5ac /net/netfilter/xt_set.c | |
parent | netfilter: nft_hash: get random bytes if seed is not specified (diff) | |
download | wireguard-linux-4e24877e61e8507c0843e4bddbc6ecccbfd2e87d.tar.xz wireguard-linux-4e24877e61e8507c0843e4bddbc6ecccbfd2e87d.zip |
netfilter: nf_tables: simplify the basic expressions' init routine
Some basic expressions are built into nf_tables.ko, such as nft_cmp,
nft_lookup, nft_range and so on. But these basic expressions' init
routine is a little ugly, too many goto errX labels, and we forget
to call nft_range_module_exit in the exit routine, although it is
harmless.
Acctually, the init and exit routines of these basic expressions
are same, i.e. do nft_register_expr in the init routine and do
nft_unregister_expr in the exit routine.
So it's better to arrange them into an array and deal with them
together.
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_set.c')
0 files changed, 0 insertions, 0 deletions