]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: add new "tc" layer for virFirewallCmd objects
authorLaine Stump <laine@redhat.com>
Tue, 26 Nov 2024 03:24:48 +0000 (22:24 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Nov 2024 13:36:14 +0000 (14:36 +0100)
commit6412c2cb517b771ff295d58c787ff4e1dd58086f
tree3365249ef343a952e9b54cdf40a6741086e4600b
parentf1d94bbfa6e5ae2564fb4e857aaeeaa722539b73
util: add new "tc" layer for virFirewallCmd objects

If the layer of a virFirewallCmd is "tc", then the "tc" utility will
be executed using the arguments that had been added to the
virFirewallCmd

tc layer doesn't support auto-rollback command creation (any rollback
needs to be added manually with virFirewallAddRollbackCmd()), and also
tc layer isn't supported by the iptables backend (it would have been
straightforward to add, but the iptables backend doesn't need it, and
I didn't want to take the chance of causing a regression in that
code for no good reason).

Signed-off-by: Laine Stump <laine@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/network/network_nftables.c
src/util/virfirewall.c
src/util/virfirewall.h
src/util/virfirewalld.c