diff options
author | Phil Sutter <phil@nwl.cc> | 2021-11-26 18:26:07 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-01-12 14:04:52 +0100 |
commit | d83371c7330632a85a443c09ade2f9e0fac615e4 (patch) | |
tree | c38e0f2452ef0c6ec81ca47de15bd0d048e02308 /iptables/xtables.c | |
parent | 49aa44ba9e09e5f62f3dccbe14b845e20cfc7b20 (diff) |
xtables: Drop xtables' family on demand feature
This conditional h->family assignment was added by commit 3f7877e6be987
("xtables-restore: add -4 and -6 support") with the intention to support
something like 'xtables-restore -6 <ip6tables.dump', i.e. having
family-agnostic commands which accept flags to set the family. Yet
commit be70918eab26e ("xtables: rename xt-multi binaries to -nft,
-legacy") removed support for such command names back in 2018 and nobody
has complained so far. Therefore drop this leftover as it makes
do_parse() more generic.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables.c')
-rw-r--r-- | iptables/xtables.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/iptables/xtables.c b/iptables/xtables.c index 57bec76c..5c48bd94 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -657,10 +657,6 @@ void do_parse(struct nft_handle *h, int argc, char *argv[], xtables_error(PARAMETER_PROBLEM, "nothing appropriate following !"); - /* Set only if required, needed by xtables-restore */ - if (h->family == AF_UNSPEC) - h->family = args->family; - h->ops->post_parse(p->command, cs, args); if (p->command == CMD_REPLACE && |