]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix formatting of network address in iptables helpers
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 25 Oct 2010 14:10:33 +0000 (15:10 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 26 Oct 2010 10:19:13 +0000 (11:19 +0100)
commiteff1735e421148bee6b63305fd40adcc433fdf41
tree845471e581a0015b6eb0774775873a8e8fb583bc
parent1a29a14a2f6c97b5a8d33de7235e07bedf7aab24
Fix formatting of network address in iptables helpers

The network address was being set to 192.168.122.0 instead
of 192.168.122.0/24. Fix this by removing the unneccessary
'network' field from virNetworkDef and just pass the
network address and netmask into the iptables APIs directly.

* src/conf/network_conf.h, src/conf/network_conf.c: Remove
  the 'network' field from virNEtworkDef.
* src/network/bridge_driver.c: Update for iptables API changes
* src/util/iptables.c, src/util/iptables.h: Require the
  network address + netmask pair to be passed in
src/conf/network_conf.c
src/conf/network_conf.h
src/network/bridge_driver.c
src/util/iptables.c
src/util/iptables.h