aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2012-04-19 10:21:43 -0400
committerStefan Berger <stefanb@us.ibm.com>2012-04-19 10:21:43 -0400
commit7c26343bc38e9fb91dcb0911cb851592d03e0721 (patch)
tree736503820e293543c935f9912bc852d197109401 /src/conf/nwfilter_conf.h
parentSupport for atomic operations on integers (diff)
downloadlibvirt-7c26343bc38e9fb91dcb0911cb851592d03e0721.tar.gz
libvirt-7c26343bc38e9fb91dcb0911cb851592d03e0721.tar.bz2
libvirt-7c26343bc38e9fb91dcb0911cb851592d03e0721.zip
nwfilter: Fix support for trusted DHCP servers
Fix the support for trusted DHCP server in the ebtables code's hard-coded function applying DHCP only filtering rules: Rather than using a char * use the more flexible virNWFilterVarValuePtr that contains the trusted DHCP server(s) IP address. Process all entries. Since all callers so far provided NULL as parameter, no changes are necessary in any other code.
Diffstat (limited to 'src/conf/nwfilter_conf.h')
-rw-r--r--src/conf/nwfilter_conf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf/nwfilter_conf.h b/src/conf/nwfilter_conf.h
index 4816a9c6f..a9a55c7e6 100644
--- a/src/conf/nwfilter_conf.h
+++ b/src/conf/nwfilter_conf.h
@@ -625,7 +625,7 @@ typedef int (*virNWFilterApplyBasicRules)(const char *ifname,
typedef int (*virNWFilterApplyDHCPOnlyRules)(const char *ifname,
const unsigned char *macaddr,
- const char *dhcpserver,
+ virNWFilterVarValuePtr dhcpsrvs,
bool leaveTemporary);
typedef int (*virNWFilterRemoveBasicRules)(const char *ifname);