* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
* OR MODIFICATIONS.
*
- * $Id: ppp_comp.c,v 1.10 1999/02/26 10:52:07 paulus Exp $
+ * $Id: ppp_comp.c,v 1.13 2002/09/07 05:15:25 carlsonj Exp $
*/
/*
&r_init, &w_init, NULL, NULL
};
+int ppp_comp_count; /* number of module instances in use */
+
#ifdef __osf__
static void ppp_comp_alloc __P((comp_state_t *));
OPEN_ERROR(ENOSR);
cp->thread = thread;
#endif
+ ++ppp_comp_count;
qprocson(q);
}
return 0;
FREE(cp, sizeof(comp_state_t));
q->q_ptr = NULL;
OTHERQ(q)->q_ptr = NULL;
+ --ppp_comp_count;
}
return 0;
}
ppp_comp_wsrv(q)
queue_t *q;
{
- mblk_t *mp, *cmp = NULL, *np;
+ mblk_t *mp, *cmp = NULL;
comp_state_t *cp;
int len, proto, type, hlen, code;
struct ip *ip;
if (!bcanputnext(q,mp->b_band))
#else
if (!canputnext(q))
-#endif PRIOQ
+#endif /* PRIOQ */
{
putbq(q, mp);
break;
if (cmp != NULL) {
#ifdef PRIOQ
cmp->b_band=mp->b_band;
-#endif PRIOQ
+#endif /* PRIOQ */
freemsg(mp);
mp = cmp;
}