mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
networkEnableIpForwarding() now returns zero for success
This commit is contained in:
parent
6a4da4657b
commit
761f5a52dc
@ -1,3 +1,8 @@
|
|||||||
|
Sun Feb 22 11:18:20 GMT 2009 Mark McLoughlin <markmc@redhat.com>
|
||||||
|
|
||||||
|
* src/network_driver.c: networkEnableIpForwarding() now
|
||||||
|
returns zero for success
|
||||||
|
|
||||||
Sun Feb 22 11:06:39 GMT 2009 Mark McLoughlin <markmc@redhat.com>
|
Sun Feb 22 11:06:39 GMT 2009 Mark McLoughlin <markmc@redhat.com>
|
||||||
|
|
||||||
* docs/formatdomain.html: commit auto-generated change as
|
* docs/formatdomain.html: commit auto-generated change as
|
||||||
|
@ -794,7 +794,7 @@ networkRemoveIptablesRules(struct network_driver *driver,
|
|||||||
iptablesSaveRules(driver->iptables);
|
iptablesSaveRules(driver->iptables);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable IP Forwarding. Return 0 for success, nonzero for failure. */
|
/* Enable IP Forwarding. Return 0 for success, -1 for failure. */
|
||||||
static int
|
static int
|
||||||
networkEnableIpForwarding(void)
|
networkEnableIpForwarding(void)
|
||||||
{
|
{
|
||||||
@ -853,7 +853,7 @@ static int networkStartNetworkDaemon(virConnectPtr conn,
|
|||||||
goto err_delbr1;
|
goto err_delbr1;
|
||||||
|
|
||||||
if (network->def->forwardType != VIR_NETWORK_FORWARD_NONE &&
|
if (network->def->forwardType != VIR_NETWORK_FORWARD_NONE &&
|
||||||
!networkEnableIpForwarding()) {
|
networkEnableIpForwarding() < 0) {
|
||||||
virReportSystemError(conn, errno, "%s",
|
virReportSystemError(conn, errno, "%s",
|
||||||
_("failed to enable IP forwarding"));
|
_("failed to enable IP forwarding"));
|
||||||
goto err_delbr2;
|
goto err_delbr2;
|
||||||
|
Loading…
Reference in New Issue
Block a user