]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: Derive xtables_globals from family
authorPhil Sutter <phil@nwl.cc>
Mon, 27 Sep 2021 14:59:49 +0000 (16:59 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 20 Oct 2021 09:32:54 +0000 (11:32 +0200)
commitab0a785a72a6be0d4a37e3492069a8719418cfbc
tree26641d332425a0bd39605e8400c8d6a614b6f354
parent6cf3976ef7f06b3892a111a3c187c6ca37dbc19e
xtables: Derive xtables_globals from family

Prepare xtables_main() for use with other families than IPV4 or IPV6
which both use the same xtables_globals object. Therefore introduce a
function to map from family value to xtables_globals object pointer.

In do_parse(), use xt_params pointer as well instead of direct
reference.

While being at it, Declare arptables_globals and ebtables_globals in
xtables_multi.h which seems to be the proper place for that.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xtables-arp-standalone.c
iptables/xtables-eb-translate.c
iptables/xtables-multi.h
iptables/xtables-standalone.c
iptables/xtables.c