mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +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>
|
||||
|
||||
* docs/formatdomain.html: commit auto-generated change as
|
||||
|
@ -794,7 +794,7 @@ networkRemoveIptablesRules(struct network_driver *driver,
|
||||
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
|
||||
networkEnableIpForwarding(void)
|
||||
{
|
||||
@ -853,7 +853,7 @@ static int networkStartNetworkDaemon(virConnectPtr conn,
|
||||
goto err_delbr1;
|
||||
|
||||
if (network->def->forwardType != VIR_NETWORK_FORWARD_NONE &&
|
||||
!networkEnableIpForwarding()) {
|
||||
networkEnableIpForwarding() < 0) {
|
||||
virReportSystemError(conn, errno, "%s",
|
||||
_("failed to enable IP forwarding"));
|
||||
goto err_delbr2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user