+
+/*
+ * Host data base timer routine.
+ * Decrement timers on structures which are
+ * waiting to be deallocated. On expiration
+ * release resources, possibly deallocating
+ * mbuf associated with structure.
+ */
+hostslowtimo()
+{
+ register struct mbuf *m;
+ register struct host *hp, *lp;
+ struct hmbuf *hm;
+ int s = splimp();
+
+ for (m = hosts; m; m = m->m_next) {
+ hm = mtod(m, struct hmbuf *);
+ hp = hm->hm_hosts;
+ lp = hp + HPMBUF;
+ for (; hm->hm_count > 0 && hp < lp; hp++) {
+ if (hp->h_flags & HF_INUSE)
+ continue;
+ if (hp->h_timer && --hp->h_timer == 0)
+ hostrelease(hp);
+ }
+ }
+ splx(s);
+}
+#endif