mlst_network-ea1.h
//called if a neighbor is removed
called if a neighbor is removed
called if a neighbor is removed
static void onPvnDelete(struct Nbr* n)
{
#ifdef DEBUG
	printf("DELETE %d\n", n->id);
#endif
	mlst_stay_active_for_next_n_periods = IF_CHANGE_STAY_ACTIVE_FOR_N_PERIODS;
	if(n == mlst_parent){ 
		mlst_parent = 0;
		own_mlst_public_variable.parent_id = 0;
		own_mlst_public_variable.distance_to_root = 0xff;
		own_mlst_public_variable.children_count = 0;
	}
}
static void onPvnDelete ( struct Nbr * n ) { #ifdef DEBUG printf ( " \n " , n -> id ) ; #endif mlst_stay_active_for_next_n_periods = IF_CHANGE_STAY_ACTIVE_FOR_N_PERIODS ; if ( n == mlst_parent ) { mlst_parent = 0 ; own_mlst_public_variable . parent_id = 0 ; own_mlst_public_variable . distance_to_root = 0xff ; own_mlst_public_variable . children_count = 0 ; } }
called if a neighbor is removed
called if a neighbor is removed
//If parent is deleted, reset state