* 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.12 1999/09/15 23:49:06 masputra 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;