code: def set_promisc(self, value):
          
  
          try:
              fcntl.ioctl(self.ins, BIOCPROMISC, struct.pack('i', value))
          except IOError:
              raise Scapy_Exception("Cannot set promiscuous mode on interface "
                                    "(%s)!" % self.iface)
docs: Set the interface in promiscuous mode