usr.sbin/atm/atmarpd/atmarp_timer.c
void
atmarp_perm_timeout(Harp_timer *tp)
{
	int		i, rc;
	Atmarp_intf	*aip;
	Atmarp		*aap;

	/*
	 * Loop through all interfaces
	 */
	for (aip = atmarp_intf_head; aip; aip = aip->ai_next) {
		/*
		 * Loop through the interface's cache
		 */
		for (i = 0; i < ATMARP_HASHSIZ; i++) {
			for (aap = aip->ai_arptbl[i]; aap;
					aap = aap->aa_next) {
				/*
				 * Find and update permanent entries
				 */
				if ((aap->aa_flags & (AAF_PERM |
						AAF_SERVER)) != 0) {
					aap->aa_seq++;
					rc = atmarp_scsp_update(aap,
						SCSP_ASTATE_UPD);
				}
			}
		}
	}

	/*
	 * Restart the permanent cache entry timer
	 */
	HARP_TIMER(tp, ATMARP_PERM_INTERVAL, atmarp_perm_timeout);
}
/*
 * Permanent cache entry timer processing
 *
 * Permanent cache entries (entries that are administratively added
 * and the entry for the server itself) don't ever get refreshed, so
 * we broadcast updates for them every 10 minutes so they won't get
 * deleted from the remote servers' caches
 *
 * Arguments:
 *	tp	pointer to a HARP timer block
 *
 * Returns:
 *	None
 *
 */
Permanent cache entry timer processing
Permanent cache entries (entries that are administratively added
and the entry for the server itself) don't ever get refreshed, so
we broadcast updates for them every 10 minutes so they won't get
deleted from the remote servers' caches

tp      pointer to a HARP timer block

None
Permanent cache entry timer processing Permanent cache entries ( entries that are administratively added and the entry for the server itself ) don ' t ever get refreshed so we broadcast updates for them every 10 minutes so they won ' t get deleted from the remote servers ' caches tp pointer to a HARP timer block None
void
atmarp_perm_timeout(Harp_timer *tp)
{
	int		i, rc;
	Atmarp_intf	*aip;
	Atmarp		*aap;
	for (aip = atmarp_intf_head; aip; aip = aip->ai_next) {
		for (i = 0; i < ATMARP_HASHSIZ; i++) {
			for (aap = aip->ai_arptbl[i]; aap;
					aap = aap->aa_next) {
				if ((aap->aa_flags & (AAF_PERM |
						AAF_SERVER)) != 0) {
					aap->aa_seq++;
					rc = atmarp_scsp_update(aap,
						SCSP_ASTATE_UPD);
				}
			}
		}
	}
	HARP_TIMER(tp, ATMARP_PERM_INTERVAL, atmarp_perm_timeout);
}
void atmarp_perm_timeout ( Harp_timer * tp ) { int i , rc ; Atmarp_intf * aip ; Atmarp * aap ; for ( aip = atmarp_intf_head ; aip ; aip = aip -> ai_next ) { for ( i = 0 ; i < ATMARP_HASHSIZ ; i ++ ) { for ( aap = aip -> ai_arptbl [ i ] ; aap ; aap = aap -> aa_next ) { if ( ( aap -> aa_flags & ( AAF_PERM | AAF_SERVER ) ) != 0 ) { aap -> aa_seq ++ ; rc = atmarp_scsp_update ( aap , SCSP_ASTATE_UPD ) ; } } } } HARP_TIMER ( tp , ATMARP_PERM_INTERVAL , atmarp_perm_timeout ) ; }
Permanent cache entry timer processing
 Permanent cache entries (entries that are administratively added
 and the entry for the server itself) don't ever get refreshed, so
 we broadcast updates for them every 10 minutes so they won't get
 deleted from the remote servers' caches
Permanent cache entry timer processing Permanent cache entries ( entries that are administratively added and the entry for the server itself ) don ' t ever get refreshed so we broadcast updates for them every 10 minutes so they won ' t get deleted from the remote servers ' caches
/*
	 * Loop through all interfaces
	 */ /*
		 * Loop through the interface's cache
		 */ /*
				 * Find and update permanent entries
				 */ /*
	 * Restart the permanent cache entry timer
	 */