* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
* OR MODIFICATIONS.
*
- * $Id: ppp_comp.c,v 1.3 1995/04/26 04:15:48 paulus Exp $
+ * $Id: ppp_comp.c,v 1.6 1995/06/23 01:42:54 paulus Exp $
*/
#include <net/net_globals.h>
extern struct compressor ppp_bsd_compress;
struct compressor *ppp_compressors[] = {
+#if DO_BSD_COMPRESS
&ppp_bsd_compress,
+#endif
NULL
};
mp = allocb(sizeof(struct ppp_comp_stats) + sizeof(u_long),
BPRI_HI);
if (mp != NULL) {
+ mp->b_datap->db_type = M_CTL;
*(u_char *) mp->b_wptr = IF_CSTATS;
mp->b_wptr += sizeof(u_long); /* should be enough alignment */
pcp = (struct ppp_comp_stats *) mp->b_wptr;
if (cp->xstate != NULL
&& (*cp->xcomp->comp_init)
(cp->xstate, dp + CCP_HDRLEN, clen - CCP_HDRLEN,
- 0, /* XXX: should be unit */
+ 0, /* XXX: should be unit */ 0,
cp->debug))
cp->ccp_state |= CCP_COMP_RUN;
} else {