* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
* OR MODIFICATIONS.
*
- * $Id: ppp_comp.c,v 1.5 1996/08/28 06:36:30 paulus Exp $
+ * $Id: ppp_comp.c,v 1.7 1997/03/04 03:31:51 paulus Exp $
*/
/*
#define PPP_COMP_ID 0xbadf
static struct module_info minfo = {
+#ifdef PRIOQ
+ PPP_COMP_ID, "ppp_comp", 0, INFPSZ, 16512, 16384,
+#else
PPP_COMP_ID, "ppp_comp", 0, INFPSZ, 16384, 4096,
+#endif
};
static struct qinit r_init = {
ppp_comp_wput, ppp_comp_wsrv, NULL, NULL, NULL, &minfo, NULL
};
+#if defined(SVR4) && !defined(SOL2)
+int pcmpdevflag = 0;
+#define ppp_compinfo pcmpinfo
+#endif
struct streamtab ppp_compinfo = {
&r_init, &w_init, NULL, NULL
};
* List of compressors we know about.
*/
+#if DO_BSD_COMPRESS
extern struct compressor ppp_bsd_compress;
+#endif
+#if DO_DEFLATE
extern struct compressor ppp_deflate;
+#endif
struct compressor *ppp_compressors[] = {
#if DO_BSD_COMPRESS
cp = (comp_state_t *) q->q_ptr;
while ((mp = getq(q)) != 0) {
/* assert(mp->b_datap->db_type == M_DATA) */
- if (!canputnext(q)) {
+#ifdef PRIOQ
+ if (!bcanputnext(q,mp->b_band)) {
+#else
+ if (!canputnext(q)) {
+#endif PRIOQ
putbq(q, mp);
return;
}
(*cp->xcomp->compress)(cp->xstate, &cmp, mp, len,
(cp->flags & CCP_ISUP? cp->mtu: 0));
if (cmp != NULL) {
+#ifdef PRIOQ
+ cmp->b_band=mp->b_band;
+#endif PRIOQ
freemsg(mp);
mp = cmp;
}