[libvirt] [PATCH v2] nwfilter: Tear down temp. filters when tearing all filters

Daniel P. Berrange berrange at redhat.com
Wed Apr 30 16:41:30 UTC 2014


On Wed, Apr 30, 2014 at 12:30:01PM -0400, Stefan Berger wrote:
> From: Stefan Berger <stefanb at linux.vnet.ibm.com>
> 
> 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 at linux.vnet.ibm.com>
> 
> v1->v2:
>   - test cases adjusted to expect more commands
> ---
>  src/nwfilter/nwfilter_ebiptables_driver.c | 24 ++++++++----
>  tests/nwfilterebiptablestest.c            | 64 +++++++++++++++++--------------
>  2 files changed, 52 insertions(+), 36 deletions(-)

ACK


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list