]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Make filter creation in root table more flexible
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 18 Nov 2011 16:58:17 +0000 (11:58 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 18 Nov 2011 16:58:17 +0000 (11:58 -0500)
commitbe39b3e4a5d535935f23d413b409aa9868a560ad
tree2148519331870f1ad4fcdf8707d2100306da561b
parent4df34ec394b6df269f7040f0ac8d0901a93e120c
Make filter creation in root table more flexible

Use the previously introduced chain priorities to sort the chains for access
from an interface's 'root' table and have them created in the proper order.
This gets rid of a lot of code that was previously creating the chains in a
more hardcoded way.

To determine what protocol a filter is used for evaluation do prefix-
matching, i.e., the filter 'arp' is used to filter for the 'arp' protocol,
'ipv4' for the 'ipv4' protocol and 'arp-xyz' will also be used to filter
for the 'arp' protocol following the prefix 'arp' in its name.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/nwfilter/nwfilter_ebiptables_driver.c