X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FNetdeviceController.cc;h=a11c494d019cd6f366ac6e1018e3c7a6e539a60b;hb=e9db10951ae84696e2c287c22c86add276213281;hp=cf25047c954eb665697498a6465f20680ab9380b;hpb=6d527cd9cf4d928926e5bf164ea470eb419fcbf8;p=senf.git diff --git a/Socket/NetdeviceController.cc b/Socket/NetdeviceController.cc index cf25047..a11c494 100644 --- a/Socket/NetdeviceController.cc +++ b/Socket/NetdeviceController.cc @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Thorsten Horstmann +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Thorsten Horstmann // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -30,7 +30,6 @@ // Custom includes #include #include -#include #include "../Utils/Exception.hh" #define prefix_ @@ -97,7 +96,7 @@ prefix_ void senf::NetdeviceController::openSocket() { sockfd_ = ::socket( PF_INET, SOCK_DGRAM, 0); if ( sockfd_ < 0) - throwErrno(); + throw SystemException(); } prefix_ void senf::NetdeviceController::ifrName(ifreq& ifr) @@ -105,14 +104,14 @@ prefix_ void senf::NetdeviceController::ifrName(ifreq& ifr) ::memset( &ifr, 0, sizeof(ifr)); ifr.ifr_ifindex = ifindex_; if ( ::ioctl( sockfd_, SIOCGIFNAME, &ifr ) < 0 ) - throwErrno(); + throw SystemException(); } prefix_ void senf::NetdeviceController::doIoctl(ifreq& ifr, int request) { if ( ::ioctl( sockfd_, request, &ifr ) < 0 ) - throwErrno(); + throw SystemException(); } ///////////////////////////////cc.e////////////////////////////////////////