(self)
return True
Initialize sniffer
Initialize sniffer
Initialize sniffer
def initialize(self):
        """ Initialize sniffer 
        """
        if test_filter(self.config['filter'].value):
            self.sniff_filter = self.config['filter'].value.format(
                                            self.config['target'].value)
            self.run()
        else:
            Error("Error with provided filter.")
            return False
        return True
def initialize ( self ) : if test_filter ( self . config [ 'filter' ] . value ) : self . sniff_filter = self . config [ 'filter' ] . value . format ( self . config [ 'target' ] . value ) self . run ( ) else : Error ( "Error with provided filter." ) return False return True