]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: refactor iptables command construction into multiple steps
authorNatanael Copa <ncopa@alpinelinux.org>
Mon, 4 Feb 2013 09:45:23 +0000 (10:45 +0100)
committerEric Blake <eblake@redhat.com>
Fri, 8 Feb 2013 21:19:30 +0000 (14:19 -0700)
commitf3531a040cf2ea1fc432a7613af4e9e823b2caa1
tree404c2af8a506c9f61445fad5ef1e881f51196d45
parent66d9bc00abb412cb3a9127cca8a7bf72c2714c9a
util: refactor iptables command construction into multiple steps

Instead of creating an iptables command in one shot, do it in steps
so we can add conditional options like physdev and protocol.

This removes code duplication while keeping existing behaviour.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/viriptables.c