X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FNetdeviceController.hh;h=0d15068a7e3f99455b7d30509db502f9ca09a53b;hb=73c33f663ff0f65e4656ea5a5f6f07a43a2e1722;hp=b7b4259de3e511cff42513d4505ae2bb0e06cc11;hpb=3fe2ed38b800bcb57afff676698462e763724245;p=senf.git diff --git a/senf/Socket/NetdeviceController.hh b/senf/Socket/NetdeviceController.hh index b7b4259..0d15068 100644 --- a/senf/Socket/NetdeviceController.hh +++ b/senf/Socket/NetdeviceController.hh @@ -70,18 +70,24 @@ namespace senf { void interfaceName(const std::string &newName); ///< set interface name /**< Changes the name of the interface. - Note, that setting the name is a privileged operation. - It is only allowed when the interface is not up. If - the interface is up, this call will cause an + Note, that setting the name is a privileged operation. + It is only allowed when the interface is not up. If + the interface is up, this call will cause an SystemException to be thrown. */ int mtu() const; ///< return the Maximum Transmission Unit void mtu(int new_mtu); ///< set the Maximum Transmission Unit /**< Set the MTU (Maximum Transfer Unit) of the device. Note, that this is a privileged operation. - Setting the MTU to too small values may cause kernel + Setting the MTU to too small values may cause kernel crashes. */ + int txqueuelen() const; ///< return the Tx Queue Length + void txqueuelen(int new_mtu); ///< set the Tx Queue Length + /**< Set the Tx Queue Length (in Packets) MTU of the device. + Note, that this is a privileged operation. */ + + 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. */