(self, iface, sckt, data)
Send an ioctl SIOCETHTOOL call for given interface with given data.
Send an ioctl SIOCETHTOOL call for given interface with given data.
Send an ioctl SIOCETHTOOL call for given interface with given data .
def _send_ethtool_ioctl(self, iface, sckt, data):
        """
        Send an ioctl SIOCETHTOOL call for given interface with given data.
        """
        ifr = struct.pack('16sP', iface.encode('utf-8'), data.buffer_info()[0])
        fcntl.ioctl(sckt.fileno(), SIOCETHTOOL, ifr)
def _send_ethtool_ioctl ( self , iface , sckt , data ) : ifr = struct . pack ( '16sP' , iface . encode ( 'utf-8' ) , data . buffer_info ( ) [ 0 ] ) fcntl . ioctl ( sckt . fileno ( ) , SIOCETHTOOL , ifr )