git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1617
270642c3-0616-0410-b53a-bc976706d245
doIoctl( ifr, SIOCSIFMTU);
}
+prefix_ int senf::NetdeviceController::txqueuelen()
+ const
+{
+ struct ifreq ifr;
+ ifrName( ifr);
+ doIoctl( ifr, SIOCGIFTXQLEN);
+ return ifr.ifr_qlen;
+}
+
+prefix_ void senf::NetdeviceController::txqueuelen(int new_txqueuelen)
+{
+ struct ifreq ifr;
+ ifrName( ifr);
+ ifr.ifr_qlen = new_txqueuelen;
+ doIoctl( ifr, SIOCSIFTXQLEN);
+}
+
+
prefix_ bool senf::NetdeviceController::promisc()
const
{
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. */