]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: skip some interfaces on filter update
authorStefan Berger <stefanb@us.ibm.com>
Mon, 3 May 2010 22:14:58 +0000 (18:14 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 3 May 2010 22:14:58 +0000 (18:14 -0400)
commit018fd697b6a98230d007c2c729bdd2688c218ff6
treeff81310cdea078f805bd750479ad0779aa14f1d0
parent5c77fddf4e11644626b4573e279bfbb27f230340
nwfilter: skip some interfaces on filter update

When a filter is updated, only those interfaces must have their old
rules cleared that either reference the filter directly or indirectly
through another filter. Remember between the different steps of the
instantiation of the filters which interfaces must be skipped. I am
using a hash map to remember the names of the interfaces and store a
bogus pointer to ~0 into it that need not be freed.
src/conf/nwfilter_conf.c
src/conf/nwfilter_conf.h
src/nwfilter/nwfilter_gentech_driver.c
src/nwfilter/nwfilter_gentech_driver.h