summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas2011-09-19 17:16:56 +0200
committerNiklas2011-09-19 17:16:56 +0200
commitb39f28d0c9708baea109439bb97e69921567ffa2 (patch)
tree55814fe08b471442e4d2bbba8f5d17ee01bae5e8
parentadded a new version of the routemanager. now the delRoute and addRoute is wor... (diff)
downloadfbgui-b39f28d0c9708baea109439bb97e69921567ffa2.tar.gz
fbgui-b39f28d0c9708baea109439bb97e69921567ffa2.tar.xz
fbgui-b39f28d0c9708baea109439bb97e69921567ffa2.zip
routmanager doRoute: changed the retun value in case of an error to -1
-rw-r--r--LogReceiver/routemanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/LogReceiver/routemanager.cpp b/LogReceiver/routemanager.cpp
index 6328c21..3063b21 100644
--- a/LogReceiver/routemanager.cpp
+++ b/LogReceiver/routemanager.cpp
@@ -93,12 +93,12 @@ int routemanager::doRoute(QString destination, QString gateway, int af, int acti
if (!(dst = nl_addr_parse(dstaddr, af))) {
qDebug() << "Invalid network address given:" << dstaddr;
- return 1;
+ return -1;
}
if (!(gw = nl_addr_parse(gwaddr, af))) {
qDebug() << "Invalid router address given: " << gwaddr;
nl_addr_put(dst);
- return 1;
+ return -1;
}
route = rtnl_route_alloc();