summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;