summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas2011-09-23 15:03:43 +0200
committerNiklas2011-09-23 15:03:43 +0200
commitaabb0755cc153b9ef987ff5efa8ef05f92f209ce (patch)
treef8380c6c7dba1efc87832a300fc29d974168ced7
parentadded a function to the routemanager (which will soon be renamed into networ... (diff)
downloadfbgui-aabb0755cc153b9ef987ff5efa8ef05f92f209ce.tar.gz
fbgui-aabb0755cc153b9ef987ff5efa8ef05f92f209ce.tar.xz
fbgui-aabb0755cc153b9ef987ff5efa8ef05f92f209ce.zip
added some comments to the new bringInterfaceUpDown function in routemanager(soon networkmanager)
-rw-r--r--LogReceiver/routemanager.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/LogReceiver/routemanager.cpp b/LogReceiver/routemanager.cpp
index ceb9b28..aa12fa3 100644
--- a/LogReceiver/routemanager.cpp
+++ b/LogReceiver/routemanager.cpp
@@ -87,7 +87,19 @@ int routemanager::replaceDefaultRoute(QString ifname, QString gateway,
return retval;
}
-
+/**
+ * This method brings an interface up or down.
+ *
+ * @param ifname
+ * is a string which contains the interface name which is going down or up.
+ *
+ * @param up
+ * is a bool. true means. we bring the interface up.
+ * false meand. we bring the interface down.
+ * @return
+ * 0 if everything is ok
+ * else an error
+ */
int routemanager::bringInterfaceUpDown(QString ifname, bool up) {
struct nl_cache *cache;
struct nl_handle* rtsock;