Skip to content
Snippets Groups Projects
flooding.py 224 B
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