From: tho Date: Fri, 14 Dec 2007 15:53:42 +0000 (+0000) Subject: minor renaming X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=b72c25d581c908c9ed8217d03f7f628f1fcc7702;p=senf.git minor renaming git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@565 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/NetdeviceController.cc b/Socket/NetdeviceController.cc index c51302b..57e43fd 100644 --- a/Socket/NetdeviceController.cc +++ b/Socket/NetdeviceController.cc @@ -55,7 +55,7 @@ prefix_ senf::NetdeviceController::NetdeviceController(int interface_index) prefix_ std::string senf::NetdeviceController::interfaceName() { struct ifreq ifr; - set_ifr_name( ifr); + ifr_name( ifr); return std::string( ifr.ifr_name); } @@ -69,7 +69,7 @@ prefix_ senf::MACAddress senf::NetdeviceController::hardwareAddress() prefix_ int senf::NetdeviceController::mtu() { struct ifreq ifr; - set_ifr_name(ifr); + ifr_name(ifr); doIoctl( ifr, SIOCGIFMTU); return ifr.ifr_mtu; } @@ -77,7 +77,7 @@ prefix_ int senf::NetdeviceController::mtu() prefix_ void senf::NetdeviceController::mtu(int new_mtu) { struct ifreq ifr; - set_ifr_name( ifr); + ifr_name( ifr); ifr.ifr_mtu = new_mtu; doIoctl( ifr, SIOCSIFMTU); } @@ -99,7 +99,7 @@ prefix_ void senf::NetdeviceController::openSocket() throwErrno(); } -prefix_ void senf::NetdeviceController::set_ifr_name(ifreq& ifr) +prefix_ void senf::NetdeviceController::ifr_name(ifreq& ifr) { ::memset( &ifr, 0, sizeof(ifr)); ifr.ifr_ifindex = ifindex_; diff --git a/Socket/NetdeviceController.hh b/Socket/NetdeviceController.hh index bf224ef..194cb6e 100644 --- a/Socket/NetdeviceController.hh +++ b/Socket/NetdeviceController.hh @@ -58,7 +58,7 @@ namespace senf { private: void openSocket(); void doIoctl(ifreq& ifr, int request); - void set_ifr_name(ifreq& ifr); + void ifr_name(ifreq& ifr); int sockfd_; int ifindex_; };