X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FNetdeviceController.hh;h=1db86556102381eec3eed7e6de371226d1af4af9;hb=8b850077607ffce008eef5de807a8f6facb94e79;hp=bf224efde1e5a191efa4de86d05b35b62410f52f;hpb=8d2a1b34ab80d96c9592d55f56effad26ef4f930;p=senf.git diff --git a/Socket/NetdeviceController.hh b/Socket/NetdeviceController.hh index bf224ef..1db8655 100644 --- a/Socket/NetdeviceController.hh +++ b/Socket/NetdeviceController.hh @@ -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 @@ -41,6 +41,7 @@ namespace senf { /** \brief NetdeviceController \todo document me + \todo Add 'promisc' member to enable/disable promiscuous mode */ class NetdeviceController { @@ -51,14 +52,14 @@ namespace senf { MACAddress hardwareAddress(); std::string interfaceName(); - int interfaceIndex(); + int interfaceIndex(); ///< return the interface index of the interface int mtu(); void mtu(int new_mtu); private: void openSocket(); void doIoctl(ifreq& ifr, int request); - void set_ifr_name(ifreq& ifr); + void ifrName(ifreq& ifr); int sockfd_; int ifindex_; };