From aabb0755cc153b9ef987ff5efa8ef05f92f209ce Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 23 Sep 2011 15:03:43 +0200 Subject: added some comments to the new bringInterfaceUpDown function in routemanager(soon networkmanager) --- LogReceiver/routemanager.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-55-g7522