NetworkManager r3749 - in trunk: . src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3749 - in trunk: . src
- Date: Wed, 11 Jun 2008 18:04:43 +0000 (UTC)
Author: dcbw
Date: Wed Jun 11 18:04:43 2008
New Revision: 3749
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3749&view=rev
Log:
2008-06-11 Dan Williams <dcbw redhat com>
* src/NetworkManagerSystem.c
- (nm_system_device_set_ip4_route,
nm_system_device_replace_default_ip4_route): check for the right
return value from rtnl_route_add() to know when to add a gateway
route (from Tambet)
Modified:
trunk/ChangeLog
trunk/src/NetworkManagerSystem.c
Modified: trunk/src/NetworkManagerSystem.c
==============================================================================
--- trunk/src/NetworkManagerSystem.c (original)
+++ trunk/src/NetworkManagerSystem.c Wed Jun 11 18:04:43 2008
@@ -172,7 +172,7 @@
/* Add the route */
err = rtnl_route_add (nlh, route, 0);
- if (err == ESRCH && ip4_gateway) {
+ if (err == -ESRCH && ip4_gateway) {
/* Gateway might be over a bridge; try adding a route to gateway first */
struct rtnl_route *route2;
@@ -590,7 +590,7 @@
if (err == 0) {
/* Everything good */
goto out;
- } else if (err != ESRCH) {
+ } else if (err != -ESRCH) {
nm_warning ("rtnl_route_add() returned error %s (%d)\n%s",
strerror (err), err, nl_geterror());
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]