sys/netiso/tuba_table.c
/* use same values as arp cache */
use same values as arp cache
use same values as arp cache
void
tuba_timer()
{
	int s = splnet();
	int	i;
	register struct	tuba_cache *tc;
	long	timelimit = time.tv_sec - arpt_keep;
	timeout(tuba_timer, (caddr_t)0, arpt_prune * hz);
	for (i = tuba_table_size; i > 0; i--)
		if ((tc = tuba_table[i]) && (tc->tc_refcnt == 0) &&
		    (tc->tc_time < timelimit)) {
			tuba_table[i] = 0;
			rn_delete(&tc->tc_siso.siso_addr, NULL, tuba_tree);
			free((caddr_t)tc, M_RTABLE);
		}
	splx(s);
}
void tuba_timer ( ) { int s = splnet ( ) ; int i ; register struct tuba_cache * tc ; long timelimit = time . tv_sec - arpt_keep ; timeout ( tuba_timer , ( caddr_t ) 0 , arpt_prune * hz ) ; for ( i = tuba_table_size ; i > 0 ; i -- ) if ( ( tc = tuba_table [ i ] ) && ( tc -> tc_refcnt == 0 ) && ( tc -> tc_time < timelimit ) ) { tuba_table [ i ] = 0 ; rn_delete ( & tc -> tc_siso . siso_addr , NULL , tuba_tree ) ; free ( ( caddr_t ) tc , M_RTABLE ) ; } splx ( s ) ; }
use same values as arp cache
use same values as arp cache