Skip to content
Snippets Groups Projects
flooding.py 224 B
Newer Older
  • Learn to ignore specific revisions
  • Jarrod Pas's avatar
    Jarrod Pas committed
    def flooding(self, packet, state):
        '''
        Routes a packet via flooding, i.e. sends all packets on all links.
        Always returns False.
        '''
        for met in self.links:
            self.send(met, packet)
        return False