hpimdm/Neighbor.py
def recv_hello(self, boot_time, holdtime, checkpoint_sn):
        """
        Process a received Hello message from this neighbor node
        """
        if boot_time < self.time_of_boot:
            return
        elif boot_time > self.time_of_boot:
            self.time_of_boot = boot_time
            self.neighbor_snapshot_sn = 0
            self.neighbor_state.new_neighbor_or_adjacency_reset(self)
            return

        if self.neighbor_state == Synced:
            self.time_of_last_update = time.time()
            self.set_hello_hold_time(holdtime)
            self.set_checkpoint_sn(checkpoint_sn)
        elif holdtime == 0:
            self.set_hello_hold_time(holdtime)

        Process a received Hello message from this neighbor node
        
Process a received Hello message from this neighbor node
Process a received Hello message from this neighbor node
def recv_hello(self, boot_time, holdtime, checkpoint_sn):
        if boot_time < self.time_of_boot:
            return
        elif boot_time > self.time_of_boot:
            self.time_of_boot = boot_time
            self.neighbor_snapshot_sn = 0
            self.neighbor_state.new_neighbor_or_adjacency_reset(self)
            return
        if self.neighbor_state == Synced:
            self.time_of_last_update = time.time()
            self.set_hello_hold_time(holdtime)
            self.set_checkpoint_sn(checkpoint_sn)
        elif holdtime == 0:
            self.set_hello_hold_time(holdtime)
def recv_hello ( self , boot_time , holdtime , checkpoint_sn ) : if boot_time < self . time_of_boot : return elif boot_time > self . time_of_boot : self . time_of_boot = boot_time self . neighbor_snapshot_sn = 0 self . neighbor_state . new_neighbor_or_adjacency_reset ( self ) return if self . neighbor_state == Synced : self . time_of_last_update = time . time ( ) self . set_hello_hold_time ( holdtime ) self . set_checkpoint_sn ( checkpoint_sn ) elif holdtime == 0 : self . set_hello_hold_time ( holdtime )
Process a received Hello message from this neighbor node
Process a received Hello message from this neighbor node
"""
        Process a received Hello message from this neighbor node
        """
self
boot_time
holdtime
checkpoint_sn