]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: pf: split flush and rules commands
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sat, 4 Oct 2025 14:55:49 +0000 (16:55 +0200)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 8 Oct 2025 16:24:17 +0000 (18:24 +0200)
commit88225150be92a6986eb0c84f533cdfc19e317b94
tree00d71102f773f9138d4a21d336418baf78f9c303
parent0756fefdc5b323eee8f2ac5cb6387aaec3d09396
network: pf: split flush and rules commands

Current implementation uses a single command to flush the old rules and
create new ones. This is not optimal because if flush fails for some
non-critical reasons (e.g. because the anchor didn't previously exist),
it will block rules creation and network start.

Split this command into two: one for flush, and one for rules creation.
Also, don't fail if the flush command fails.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/network/network_pf.c