X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FNetdeviceController.hh;h=6e8c06c87529bbef186ed8e5191255954b7a9543;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=db7c5cf2a1bf945c145000502ce04475f12d9948;hpb=c5ebf1fef99c27a3fdc02a70bff041ac881f4c32;p=senf.git diff --git a/Socket/NetdeviceController.hh b/Socket/NetdeviceController.hh index db7c5cf..6e8c06c 100644 --- a/Socket/NetdeviceController.hh +++ b/Socket/NetdeviceController.hh @@ -29,13 +29,14 @@ // Custom includes #include -#include #include "Protocols/Raw/MACAddress.hh" //#include "NetdeviceController.mpp" ///////////////////////////////hh.p//////////////////////////////////////// +struct ifreq; + namespace senf { /** \brief Netdevice Controller @@ -84,7 +85,11 @@ namespace senf { bool promisc() const; ///< return \c true if interface is in promiscuous mode void promisc(bool mode); ///< enable/disable promiscuous mode of the interface /**< Note, that this is a privileged operation. */ - + + bool isUp() const; ///< return \c true if interface is up + void up(); ///< ifconfig up interface + void down(); ///< ifconfig down interface + private: void openSocket(); void doIoctl(ifreq& ifr, int request) const;