]> xenbits.xensource.com Git - libvirt.git/commit
nwfilter: Tear down temp. filters when tearing all filters
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 30 Apr 2014 16:51:38 +0000 (12:51 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Wed, 30 Apr 2014 16:51:38 +0000 (12:51 -0400)
commitcdebc2f74c74ba4bc7123c8aeb068b1097c71ee5
tree17a4e5c1224d00aa16891718b3419b724214ee7e
parent7a6ae35dbe9a87b331ef395cb31f4253e740e597
nwfilter: Tear down temp. filters when tearing all filters

Refactor the ebiptablesTearNewRules function so that the teardown of temporary
filters can also be called by the ebiptablesAllTeardown function.

This fixes a problem that leaves temporary filters behind when a VM shuts down
while its filters are modified.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
v1->v2:
  - test cases adjusted to expect more commands
src/nwfilter/nwfilter_ebiptables_driver.c
tests/nwfilterebiptablestest.c